research-copilot 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +190 -0
- package/app/build/icon.icns +0 -0
- package/app/build/icon.ico +0 -0
- package/app/build/icon.png +0 -0
- package/app/out/main/index.mjs +6719 -0
- package/app/out/preload/index.js +141 -0
- package/app/out/renderer/assets/Inter-Variable-Latin-8kRkwJBP.woff2 +0 -0
- package/app/out/renderer/assets/Inter-Variable-LatinExt-B_-bZUTo.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/app/out/renderer/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/app/out/renderer/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/app/out/renderer/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/app/out/renderer/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/app/out/renderer/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/app/out/renderer/assets/MilkdownMarkdownEditor-bLPxrCVb.js +89821 -0
- package/app/out/renderer/assets/MilkdownMarkdownEditor-tTNRIB2K.css +2555 -0
- package/app/out/renderer/assets/Tableau10-BqnYsPR6.js +9 -0
- package/app/out/renderer/assets/apl-fqmucPXA.js +140 -0
- package/app/out/renderer/assets/arc-J47ePHZ2.js +132 -0
- package/app/out/renderer/assets/array-DgktLKBx.js +6 -0
- package/app/out/renderer/assets/asciiarmor-DucZyvP0.js +56 -0
- package/app/out/renderer/assets/asn1-BnOEsgAm.js +144 -0
- package/app/out/renderer/assets/asterisk-QAlztEwS.js +345 -0
- package/app/out/renderer/assets/blockDiagram-c4efeb88-5uRQXgQJ.js +1817 -0
- package/app/out/renderer/assets/brainfuck-DZVCuF_t.js +53 -0
- package/app/out/renderer/assets/c4Diagram-c83219d4-C4iCTPEL.js +2464 -0
- package/app/out/renderer/assets/channel-ZAmhHE3g.js +7 -0
- package/app/out/renderer/assets/classDiagram-beda092f-7NOZxq_W.js +357 -0
- package/app/out/renderer/assets/classDiagram-v2-2358418a-5fPT-cUH.js +291 -0
- package/app/out/renderer/assets/clike-xqXYL6ge.js +805 -0
- package/app/out/renderer/assets/clojure-BhXMqnxz.js +849 -0
- package/app/out/renderer/assets/clone-CsnzsYXQ.js +8 -0
- package/app/out/renderer/assets/cmake-BGaNd9E7.js +71 -0
- package/app/out/renderer/assets/cobol-4yqQntpt.js +120 -0
- package/app/out/renderer/assets/coffeescript-D2dXvhEc.js +308 -0
- package/app/out/renderer/assets/commonlisp-CF_VNHQR.js +130 -0
- package/app/out/renderer/assets/createText-1719965b-Cji7KN4K.js +4904 -0
- package/app/out/renderer/assets/crystal-DyuLTqLs.js +398 -0
- package/app/out/renderer/assets/css-c-jst79C.js +1783 -0
- package/app/out/renderer/assets/cypher-Dlu_3r4V.js +121 -0
- package/app/out/renderer/assets/d-UURgV0Ux.js +179 -0
- package/app/out/renderer/assets/diff-B_Bi2Crb.js +25 -0
- package/app/out/renderer/assets/dockerfile-Bvk733Ga.js +201 -0
- package/app/out/renderer/assets/dtd-Dy74G54E.js +114 -0
- package/app/out/renderer/assets/dylan-TSb-Nfix.js +314 -0
- package/app/out/renderer/assets/ebnf-DAomQUbD.js +139 -0
- package/app/out/renderer/assets/ecl-B59qGGVg.js +178 -0
- package/app/out/renderer/assets/edges-96097737-CD0EvAZQ.js +1844 -0
- package/app/out/renderer/assets/eiffel-Dze7nlu3.js +134 -0
- package/app/out/renderer/assets/elm-DG7jkhNZ.js +176 -0
- package/app/out/renderer/assets/erDiagram-0228fc6a-DRYXBpi7.js +1321 -0
- package/app/out/renderer/assets/erlang-BO6gOnGA.js +674 -0
- package/app/out/renderer/assets/factor-CMxFHDqz.js +65 -0
- package/app/out/renderer/assets/fcl-CDDUNjTj.js +141 -0
- package/app/out/renderer/assets/flowDb-c6c81e3f-CuoIN-Cy.js +1713 -0
- package/app/out/renderer/assets/flowDiagram-50d868cf-CPWPLOml.js +1272 -0
- package/app/out/renderer/assets/flowDiagram-v2-4f6560a1-C_R12s4S.js +33 -0
- package/app/out/renderer/assets/flowchart-elk-definition-6af322e1-BdKUSFpi.js +92921 -0
- package/app/out/renderer/assets/forth-B9D2JCeE.js +116 -0
- package/app/out/renderer/assets/fortran-CAG2BFbe.js +467 -0
- package/app/out/renderer/assets/ganttDiagram-a2739b55-ygqT5HlG.js +3399 -0
- package/app/out/renderer/assets/gas-d3KEcW3x.js +294 -0
- package/app/out/renderer/assets/gherkin-DhZlEZiy.js +115 -0
- package/app/out/renderer/assets/gitGraphDiagram-82fe8481-D97GT4iA.js +1791 -0
- package/app/out/renderer/assets/graph-DpC13d95.js +1237 -0
- package/app/out/renderer/assets/groovy-CpwJiBl7.js +223 -0
- package/app/out/renderer/assets/haskell-BlGBCCe3.js +459 -0
- package/app/out/renderer/assets/haxe-7MlzfeYV.js +514 -0
- package/app/out/renderer/assets/http-BqypyemW.js +79 -0
- package/app/out/renderer/assets/idl-4HIGJlDI.js +985 -0
- package/app/out/renderer/assets/index-4-ziknCv.js +292 -0
- package/app/out/renderer/assets/index-5325376f-Bbs7Fbqr.js +663 -0
- package/app/out/renderer/assets/index-B2jip-rk.js +2489 -0
- package/app/out/renderer/assets/index-BKTVfokE.js +312 -0
- package/app/out/renderer/assets/index-BiJbFgVG.js +118 -0
- package/app/out/renderer/assets/index-Bn433Fat.js +83 -0
- package/app/out/renderer/assets/index-BqDyyRCx.js +39679 -0
- package/app/out/renderer/assets/index-BzFMeMPn.js +158 -0
- package/app/out/renderer/assets/index-C-_uCjZJ.css +2701 -0
- package/app/out/renderer/assets/index-C1ithNW1.js +1765 -0
- package/app/out/renderer/assets/index-CAJkRYkO.js +407 -0
- package/app/out/renderer/assets/index-CleO0-yj.js +690 -0
- package/app/out/renderer/assets/index-Cq4MH3sY.js +1020 -0
- package/app/out/renderer/assets/index-CtA0Xj22.js +705 -0
- package/app/out/renderer/assets/index-CvAZkqBZ.js +83 -0
- package/app/out/renderer/assets/index-D3UDN-5c.js +152 -0
- package/app/out/renderer/assets/index-D4F9R5ao.js +179 -0
- package/app/out/renderer/assets/index-D6RguhZ5.js +328 -0
- package/app/out/renderer/assets/index-DnEowqXv.js +386 -0
- package/app/out/renderer/assets/index-K8c8Mqdy.js +98 -0
- package/app/out/renderer/assets/index-Kh14gO6K.js +62 -0
- package/app/out/renderer/assets/index-WFd2jRnA.js +333 -0
- package/app/out/renderer/assets/index-WgMfkRFp.js +313 -0
- package/app/out/renderer/assets/index-Y4lKyF6t.js +1042 -0
- package/app/out/renderer/assets/index-fx307_f1.js +643 -0
- package/app/out/renderer/assets/infoDiagram-8eee0895-ptaVSwzq.js +511 -0
- package/app/out/renderer/assets/init-ZxktEp_H.js +16 -0
- package/app/out/renderer/assets/javascript-C3MnDRiU.js +994 -0
- package/app/out/renderer/assets/journeyDiagram-c64418c1-aloEGOQp.js +1184 -0
- package/app/out/renderer/assets/julia-Bs6JJhYG.js +407 -0
- package/app/out/renderer/assets/layout-ZeuHE_aY.js +2217 -0
- package/app/out/renderer/assets/line-CAgaGl-S.js +45 -0
- package/app/out/renderer/assets/linear-DIg7lTe1.js +539 -0
- package/app/out/renderer/assets/livescript-DmzgM3Yt.js +296 -0
- package/app/out/renderer/assets/lua-8cJgIlqe.js +256 -0
- package/app/out/renderer/assets/mathematica-DNLOL9PQ.js +110 -0
- package/app/out/renderer/assets/mbox-Ga7d4MMN.js +117 -0
- package/app/out/renderer/assets/mindmap-definition-8da855dc-B8XVoUxz.js +36054 -0
- package/app/out/renderer/assets/mirc-Dma3B8rS.js +107 -0
- package/app/out/renderer/assets/mllike-DHn7xckP.js +334 -0
- package/app/out/renderer/assets/modelica-0d55jYY0.js +147 -0
- package/app/out/renderer/assets/mscgen-DdqZYINH.js +135 -0
- package/app/out/renderer/assets/mumps-Btr8VblO.js +93 -0
- package/app/out/renderer/assets/nginx-DTDtBDVN.js +141 -0
- package/app/out/renderer/assets/nsis-3zG7tgur.js +62 -0
- package/app/out/renderer/assets/ntriples-CvgOYMpL.js +153 -0
- package/app/out/renderer/assets/octave-DYBj3-tl.js +200 -0
- package/app/out/renderer/assets/ordinal-DSZU4PqD.js +76 -0
- package/app/out/renderer/assets/oz-R_e8WMIi.js +231 -0
- package/app/out/renderer/assets/pascal-GD8iposT.js +105 -0
- package/app/out/renderer/assets/path-Cp2qmpkd.js +109 -0
- package/app/out/renderer/assets/perl-DL9mHpoi.js +1105 -0
- package/app/out/renderer/assets/pieDiagram-a8764435-DlwoeBU2.js +770 -0
- package/app/out/renderer/assets/pig-C_4T4YIV.js +101 -0
- package/app/out/renderer/assets/powershell-B0suO7Vd.js +328 -0
- package/app/out/renderer/assets/properties-BR-vP1aU.js +58 -0
- package/app/out/renderer/assets/protobuf-BxgpyhoW.js +77 -0
- package/app/out/renderer/assets/pug-By0kVCfm.js +405 -0
- package/app/out/renderer/assets/puppet-Bdao66PW.js +137 -0
- package/app/out/renderer/assets/python-CvWbmiX4.js +427 -0
- package/app/out/renderer/assets/q-CrbCVq4a.js +131 -0
- package/app/out/renderer/assets/quadrantDiagram-1e28029f-BaSi1XB4.js +1200 -0
- package/app/out/renderer/assets/r-V7nswm59.js +170 -0
- package/app/out/renderer/assets/requirementDiagram-08caed73-D3EFyegZ.js +1092 -0
- package/app/out/renderer/assets/rpm-C-DLY-If.js +109 -0
- package/app/out/renderer/assets/ruby-JDKLJNK0.js +330 -0
- package/app/out/renderer/assets/sankeyDiagram-a04cb91d-Cv44AsnM.js +1174 -0
- package/app/out/renderer/assets/sas-D2UG-yhZ.js +207 -0
- package/app/out/renderer/assets/scheme-BKzrkGJD.js +222 -0
- package/app/out/renderer/assets/sequenceDiagram-c5b8d532-CuUBu-x4.js +3337 -0
- package/app/out/renderer/assets/shell-BlsXDxCn.js +222 -0
- package/app/out/renderer/assets/sieve-CjwBwOY5.js +135 -0
- package/app/out/renderer/assets/simple-mode-DMneyfDu.js +130 -0
- package/app/out/renderer/assets/smalltalk-BOIGQuhN.js +121 -0
- package/app/out/renderer/assets/solr-CwD7U71z.js +69 -0
- package/app/out/renderer/assets/sparql-DYskk2vE.js +249 -0
- package/app/out/renderer/assets/spreadsheet-Bgtt3oLP.js +87 -0
- package/app/out/renderer/assets/sql-BSrOzCRI.js +354 -0
- package/app/out/renderer/assets/stateDiagram-1ecb1508-BOU34Zp4.js +454 -0
- package/app/out/renderer/assets/stateDiagram-v2-c2b004d7-BgRoffou.js +326 -0
- package/app/out/renderer/assets/stex-B6LNC55o.js +231 -0
- package/app/out/renderer/assets/styles-b4e223ce-BMr9TPuj.js +1483 -0
- package/app/out/renderer/assets/styles-ca3715f6-DgbNw99p.js +1363 -0
- package/app/out/renderer/assets/styles-d45a18b0-DtRYKYKf.js +574 -0
- package/app/out/renderer/assets/stylus-BkS-boTH.js +565 -0
- package/app/out/renderer/assets/svgDrawCommon-b86b1483-Bein03PD.js +100 -0
- package/app/out/renderer/assets/swift-FRZi1uvB.js +291 -0
- package/app/out/renderer/assets/tcl-CUcaCdmq.js +114 -0
- package/app/out/renderer/assets/textile-BnFpjsrl.js +414 -0
- package/app/out/renderer/assets/tiddlywiki-CjprD-Qp.js +218 -0
- package/app/out/renderer/assets/tiki-B4EPSQ1G.js +265 -0
- package/app/out/renderer/assets/timeline-definition-faaaa080-BlWpLE_4.js +1212 -0
- package/app/out/renderer/assets/toml-BOuWGMcf.js +76 -0
- package/app/out/renderer/assets/troff-E1bJ0PPL.js +61 -0
- package/app/out/renderer/assets/ttcn-cfg-Dc39-fIP.js +133 -0
- package/app/out/renderer/assets/ttcn-tKd4HLu4.js +192 -0
- package/app/out/renderer/assets/turtle-Dq7-1WAf.js +124 -0
- package/app/out/renderer/assets/vb-Dp90gtsv.js +196 -0
- package/app/out/renderer/assets/vbscript-CI6_mxxU.js +479 -0
- package/app/out/renderer/assets/velocity-BwIZK1TH.js +149 -0
- package/app/out/renderer/assets/verilog-DDCYnHN8.js +430 -0
- package/app/out/renderer/assets/vhdl-DCkMIyT9.js +158 -0
- package/app/out/renderer/assets/webidl-BTLTThCm.js +204 -0
- package/app/out/renderer/assets/xquery-BgiOC5Ce.js +525 -0
- package/app/out/renderer/assets/xychartDiagram-f5964ef8-Bhga-YXm.js +1799 -0
- package/app/out/renderer/assets/yacas-b5lAVEIl.js +130 -0
- package/app/out/renderer/assets/z80-BZV19vqv.js +93 -0
- package/app/out/renderer/index.html +13 -0
- package/app/out/skills/community-builtin/README.md +29 -0
- package/app/out/skills/community-builtin/document-docx/SKILL.md +44 -0
- package/app/out/skills/community-builtin/document-docx/scripts/docx-to-markdown.sh +20 -0
- package/app/out/skills/community-builtin/document-docx/scripts/extract-docx-text.sh +28 -0
- package/app/out/skills/community-builtin/document-docx/scripts/init-docx-template.sh +32 -0
- package/app/out/skills/community-builtin/document-docx/scripts/setup-docx-tools.sh +10 -0
- package/app/out/skills/community-builtin/markitdown/SKILL.md +105 -0
- package/app/out/skills/community-builtin/markitdown/scripts/batch-convert.sh +40 -0
- package/app/out/skills/community-builtin/markitdown/scripts/convert-file.sh +24 -0
- package/app/out/skills/community-builtin/markitdown/scripts/setup-markitdown.sh +10 -0
- package/app/out/skills/community-builtin/repo-quick-audit/SKILL.md +27 -0
- package/app/out/skills/community-builtin/repo-quick-audit/scripts/audit-basics.sh +19 -0
- package/app/out/skills/research-pilot-default-project-skills/README.md +23 -0
- package/app/out/skills/research-pilot-default-project-skills/citation-management/SKILL.md +39 -0
- package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/doi-to-bibtex.sh +25 -0
- package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/normalize-bibtex-keys.sh +51 -0
- package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/setup-citation-tools.sh +10 -0
- package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/validate-bib.sh +31 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/SKILL.md +34 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/api_reference.md +412 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/common_issues.md +563 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/plot_types.md +476 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/styling_guide.md +589 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/subagent_quickstart.md +30 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/scripts/plot_template.py +401 -0
- package/app/out/skills/research-pilot-default-project-skills/matplotlib/scripts/style_configurator.py +409 -0
- package/app/out/skills/research-pilot-default-project-skills/research-grants/SKILL.md +38 -0
- package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/check-grant-compliance.sh +40 -0
- package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/grant-summary-card.sh +32 -0
- package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/init-grant-structure.sh +70 -0
- package/app/package.json +77 -0
- package/bin/cli.mjs +56 -0
- package/lib/README.md +145 -0
- package/lib/skills/_generated.ts +13 -0
- package/lib/skills/builtin/brainstorming-research-ideas/SKILL.md +280 -0
- package/lib/skills/builtin/coding/SKILL.md +114 -0
- package/lib/skills/builtin/creative-thinking-for-research/SKILL.md +273 -0
- package/lib/skills/builtin/matplotlib/SKILL.md +361 -0
- package/lib/skills/builtin/matplotlib/references/api_reference.md +412 -0
- package/lib/skills/builtin/matplotlib/references/common_issues.md +563 -0
- package/lib/skills/builtin/matplotlib/references/plot_types.md +476 -0
- package/lib/skills/builtin/matplotlib/references/styling_guide.md +589 -0
- package/lib/skills/builtin/matplotlib/scripts/plot_template.py +401 -0
- package/lib/skills/builtin/matplotlib/scripts/style_configurator.py +409 -0
- package/lib/skills/builtin/paper-writing/SKILL.md +554 -0
- package/lib/skills/builtin/paper-writing/references/checklists.md +524 -0
- package/lib/skills/builtin/paper-writing/references/citation-workflow.md +562 -0
- package/lib/skills/builtin/paper-writing/references/reviewer-guidelines.md +462 -0
- package/lib/skills/builtin/paper-writing/references/sources.md +189 -0
- package/lib/skills/builtin/paper-writing/references/systems-conferences.md +260 -0
- package/lib/skills/builtin/paper-writing/references/writing-guide.md +476 -0
- package/lib/skills/builtin/paper-writing/templates/README.md +408 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/README.md +534 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026-unified-supp.tex +144 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026-unified-template.tex +952 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.bib +111 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.bst +1493 -0
- package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.sty +315 -0
- package/lib/skills/builtin/paper-writing/templates/acl/README.md +50 -0
- package/lib/skills/builtin/paper-writing/templates/acl/acl.sty +312 -0
- package/lib/skills/builtin/paper-writing/templates/acl/acl_latex.tex +377 -0
- package/lib/skills/builtin/paper-writing/templates/acl/acl_lualatex.tex +101 -0
- package/lib/skills/builtin/paper-writing/templates/acl/acl_natbib.bst +1940 -0
- package/lib/skills/builtin/paper-writing/templates/acl/anthology.bib.txt +26 -0
- package/lib/skills/builtin/paper-writing/templates/acl/custom.bib +70 -0
- package/lib/skills/builtin/paper-writing/templates/acl/formatting.md +326 -0
- package/lib/skills/builtin/paper-writing/templates/asplos2027/main.tex +459 -0
- package/lib/skills/builtin/paper-writing/templates/asplos2027/references.bib +135 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/README.md +3 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.bib +11 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.bst +1440 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.pdf +0 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.sty +218 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.tex +305 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/fancyhdr.sty +485 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/math_commands.tex +508 -0
- package/lib/skills/builtin/paper-writing/templates/colm2025/natbib.sty +1246 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/fancyhdr.sty +485 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.bib +24 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.bst +1440 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.pdf +0 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.sty +246 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.tex +414 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/math_commands.tex +508 -0
- package/lib/skills/builtin/paper-writing/templates/iclr2026/natbib.sty +1246 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/algorithm.sty +79 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/algorithmic.sty +201 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.bib +75 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.pdf +0 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.tex +662 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/fancyhdr.sty +864 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/icml2026.bst +1443 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/icml2026.sty +767 -0
- package/lib/skills/builtin/paper-writing/templates/icml2026/icml_numpapers.pdf +0 -0
- package/lib/skills/builtin/paper-writing/templates/neurips2025/Makefile +36 -0
- package/lib/skills/builtin/paper-writing/templates/neurips2025/extra_pkgs.tex +53 -0
- package/lib/skills/builtin/paper-writing/templates/neurips2025/main.tex +38 -0
- package/lib/skills/builtin/paper-writing/templates/neurips2025/neurips.sty +382 -0
- package/lib/skills/builtin/paper-writing/templates/nsdi2027/main.tex +426 -0
- package/lib/skills/builtin/paper-writing/templates/nsdi2027/references.bib +151 -0
- package/lib/skills/builtin/paper-writing/templates/nsdi2027/usenix-2020-09.sty +83 -0
- package/lib/skills/builtin/paper-writing/templates/osdi2026/main.tex +429 -0
- package/lib/skills/builtin/paper-writing/templates/osdi2026/references.bib +150 -0
- package/lib/skills/builtin/paper-writing/templates/osdi2026/usenix-2020-09.sty +83 -0
- package/lib/skills/builtin/paper-writing/templates/sosp2026/main.tex +532 -0
- package/lib/skills/builtin/paper-writing/templates/sosp2026/references.bib +148 -0
- package/lib/skills/builtin/research-grants/SKILL.md +958 -0
- package/lib/skills/builtin/research-grants/assets/budget_justification_template.md +453 -0
- package/lib/skills/builtin/research-grants/assets/nih_specific_aims_template.md +166 -0
- package/lib/skills/builtin/research-grants/assets/nsf_project_summary_template.md +92 -0
- package/lib/skills/builtin/research-grants/references/README.md +285 -0
- package/lib/skills/builtin/research-grants/references/broader_impacts.md +392 -0
- package/lib/skills/builtin/research-grants/references/darpa_guidelines.md +636 -0
- package/lib/skills/builtin/research-grants/references/doe_guidelines.md +586 -0
- package/lib/skills/builtin/research-grants/references/nih_guidelines.md +851 -0
- package/lib/skills/builtin/research-grants/references/nsf_guidelines.md +570 -0
- package/lib/skills/builtin/research-grants/references/nstc_guidelines.md +733 -0
- package/lib/skills/builtin/research-grants/references/specific_aims_guide.md +458 -0
- package/lib/skills/builtin/rewrite-humanize/SKILL.md +116 -0
- package/lib/skills/builtin/rewrite-humanize/references/cs-venue-tone.md +57 -0
- package/lib/skills/builtin/rewrite-humanize/references/lexicon.md +50 -0
- package/lib/skills/builtin/scholar-evaluation/SKILL.md +300 -0
- package/lib/skills/builtin/scholar-evaluation/references/evaluation_framework.md +663 -0
- package/lib/skills/builtin/scholar-evaluation/scripts/calculate_scores.py +379 -0
- package/lib/skills/builtin/scientific-schematics/SKILL.md +603 -0
- package/lib/skills/builtin/scientific-schematics/references/QUICK_REFERENCE.md +182 -0
- package/lib/skills/builtin/scientific-schematics/references/README.md +292 -0
- package/lib/skills/builtin/scientific-schematics/references/best_practices.md +560 -0
- package/lib/skills/builtin/scientific-schematics/scripts/__pycache__/generate_schematic.cpython-312.pyc +0 -0
- package/lib/skills/builtin/scientific-schematics/scripts/__pycache__/generate_schematic_ai.cpython-312.pyc +0 -0
- package/lib/skills/builtin/scientific-schematics/scripts/example_usage.sh +85 -0
- package/lib/skills/builtin/scientific-schematics/scripts/generate_schematic.py +141 -0
- package/lib/skills/builtin/scientific-schematics/scripts/generate_schematic_ai.py +910 -0
- package/lib/skills/builtin/scientific-visualization/SKILL.md +749 -0
- package/lib/skills/builtin/scientific-visualization/assets/color_palettes.py +197 -0
- package/lib/skills/builtin/scientific-visualization/assets/nature.mplstyle +63 -0
- package/lib/skills/builtin/scientific-visualization/assets/presentation.mplstyle +61 -0
- package/lib/skills/builtin/scientific-visualization/assets/publication.mplstyle +68 -0
- package/lib/skills/builtin/scientific-visualization/references/color_palettes.md +348 -0
- package/lib/skills/builtin/scientific-visualization/references/journal_requirements.md +320 -0
- package/lib/skills/builtin/scientific-visualization/references/matplotlib_examples.md +620 -0
- package/lib/skills/builtin/scientific-visualization/references/publication_guidelines.md +205 -0
- package/lib/skills/builtin/scientific-visualization/scripts/figure_export.py +343 -0
- package/lib/skills/builtin/scientific-visualization/scripts/style_presets.py +416 -0
- package/lib/skills/builtin/scientific-writing/SKILL.md +745 -0
- package/lib/skills/builtin/scientific-writing/assets/REPORT_FORMATTING_GUIDE.md +574 -0
- package/lib/skills/builtin/scientific-writing/assets/scientific_report.sty +606 -0
- package/lib/skills/builtin/scientific-writing/assets/scientific_report_template.tex +449 -0
- package/lib/skills/builtin/scientific-writing/references/citation_styles.md +720 -0
- package/lib/skills/builtin/scientific-writing/references/figures_tables.md +806 -0
- package/lib/skills/builtin/scientific-writing/references/imrad_structure.md +686 -0
- package/lib/skills/builtin/scientific-writing/references/professional_report_formatting.md +664 -0
- package/lib/skills/builtin/scientific-writing/references/reporting_guidelines.md +748 -0
- package/lib/skills/builtin/scientific-writing/references/writing_principles.md +824 -0
- package/lib/skills/builtin/seaborn/SKILL.md +674 -0
- package/lib/skills/builtin/seaborn/references/examples.md +822 -0
- package/lib/skills/builtin/seaborn/references/function_reference.md +770 -0
- package/lib/skills/builtin/seaborn/references/objects_interface.md +964 -0
- package/lib/skills/data-analysis/SKILL.md +285 -0
- package/lib/skills/generate-skill-content.mjs +58 -0
- package/lib/skills/index.ts +34 -0
- package/lib/skills/loader.ts +452 -0
- package/package.json +62 -0
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
# Matplotlib Plot Types Guide
|
|
2
|
+
|
|
3
|
+
Comprehensive guide to different plot types in matplotlib with examples and use cases.
|
|
4
|
+
|
|
5
|
+
## 1. Line Plots
|
|
6
|
+
|
|
7
|
+
**Use cases:** Time series, continuous data, trends, function visualization
|
|
8
|
+
|
|
9
|
+
### Basic Line Plot
|
|
10
|
+
```python
|
|
11
|
+
fig, ax = plt.subplots(figsize=(10, 6))
|
|
12
|
+
ax.plot(x, y, linewidth=2, label='Data')
|
|
13
|
+
ax.set_xlabel('X axis')
|
|
14
|
+
ax.set_ylabel('Y axis')
|
|
15
|
+
ax.legend()
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Multiple Lines
|
|
19
|
+
```python
|
|
20
|
+
ax.plot(x, y1, label='Dataset 1', linewidth=2)
|
|
21
|
+
ax.plot(x, y2, label='Dataset 2', linewidth=2, linestyle='--')
|
|
22
|
+
ax.plot(x, y3, label='Dataset 3', linewidth=2, linestyle=':')
|
|
23
|
+
ax.legend()
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Line with Markers
|
|
27
|
+
```python
|
|
28
|
+
ax.plot(x, y, marker='o', markersize=8, linestyle='-',
|
|
29
|
+
linewidth=2, markerfacecolor='red', markeredgecolor='black')
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Step Plot
|
|
33
|
+
```python
|
|
34
|
+
ax.step(x, y, where='mid', linewidth=2, label='Step function')
|
|
35
|
+
# where options: 'pre', 'post', 'mid'
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Error Bars
|
|
39
|
+
```python
|
|
40
|
+
ax.errorbar(x, y, yerr=error, fmt='o-', linewidth=2,
|
|
41
|
+
capsize=5, capthick=2, label='With uncertainty')
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 2. Scatter Plots
|
|
45
|
+
|
|
46
|
+
**Use cases:** Correlations, relationships between variables, clusters, outliers
|
|
47
|
+
|
|
48
|
+
### Basic Scatter
|
|
49
|
+
```python
|
|
50
|
+
ax.scatter(x, y, s=50, alpha=0.6)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Sized and Colored Scatter
|
|
54
|
+
```python
|
|
55
|
+
scatter = ax.scatter(x, y, s=sizes*100, c=colors,
|
|
56
|
+
cmap='viridis', alpha=0.6, edgecolors='black')
|
|
57
|
+
plt.colorbar(scatter, ax=ax, label='Color variable')
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Categorical Scatter
|
|
61
|
+
```python
|
|
62
|
+
for category in categories:
|
|
63
|
+
mask = data['category'] == category
|
|
64
|
+
ax.scatter(data[mask]['x'], data[mask]['y'],
|
|
65
|
+
label=category, s=50, alpha=0.7)
|
|
66
|
+
ax.legend()
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## 3. Bar Charts
|
|
70
|
+
|
|
71
|
+
**Use cases:** Categorical comparisons, discrete data, counts
|
|
72
|
+
|
|
73
|
+
### Vertical Bar Chart
|
|
74
|
+
```python
|
|
75
|
+
ax.bar(categories, values, color='steelblue',
|
|
76
|
+
edgecolor='black', linewidth=1.5)
|
|
77
|
+
ax.set_ylabel('Values')
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Horizontal Bar Chart
|
|
81
|
+
```python
|
|
82
|
+
ax.barh(categories, values, color='coral',
|
|
83
|
+
edgecolor='black', linewidth=1.5)
|
|
84
|
+
ax.set_xlabel('Values')
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Grouped Bar Chart
|
|
88
|
+
```python
|
|
89
|
+
x = np.arange(len(categories))
|
|
90
|
+
width = 0.35
|
|
91
|
+
|
|
92
|
+
ax.bar(x - width/2, values1, width, label='Group 1')
|
|
93
|
+
ax.bar(x + width/2, values2, width, label='Group 2')
|
|
94
|
+
ax.set_xticks(x)
|
|
95
|
+
ax.set_xticklabels(categories)
|
|
96
|
+
ax.legend()
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Stacked Bar Chart
|
|
100
|
+
```python
|
|
101
|
+
ax.bar(categories, values1, label='Part 1')
|
|
102
|
+
ax.bar(categories, values2, bottom=values1, label='Part 2')
|
|
103
|
+
ax.bar(categories, values3, bottom=values1+values2, label='Part 3')
|
|
104
|
+
ax.legend()
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Bar Chart with Error Bars
|
|
108
|
+
```python
|
|
109
|
+
ax.bar(categories, values, yerr=errors, capsize=5,
|
|
110
|
+
color='steelblue', edgecolor='black')
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Bar Chart with Patterns
|
|
114
|
+
```python
|
|
115
|
+
bars1 = ax.bar(x - width/2, values1, width, label='Group 1',
|
|
116
|
+
color='white', edgecolor='black', hatch='//')
|
|
117
|
+
bars2 = ax.bar(x + width/2, values2, width, label='Group 2',
|
|
118
|
+
color='white', edgecolor='black', hatch='\\\\')
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## 4. Histograms
|
|
122
|
+
|
|
123
|
+
**Use cases:** Distributions, frequency analysis
|
|
124
|
+
|
|
125
|
+
### Basic Histogram
|
|
126
|
+
```python
|
|
127
|
+
ax.hist(data, bins=30, edgecolor='black', alpha=0.7)
|
|
128
|
+
ax.set_xlabel('Value')
|
|
129
|
+
ax.set_ylabel('Frequency')
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Multiple Overlapping Histograms
|
|
133
|
+
```python
|
|
134
|
+
ax.hist(data1, bins=30, alpha=0.5, label='Dataset 1')
|
|
135
|
+
ax.hist(data2, bins=30, alpha=0.5, label='Dataset 2')
|
|
136
|
+
ax.legend()
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Normalized Histogram (Density)
|
|
140
|
+
```python
|
|
141
|
+
ax.hist(data, bins=30, density=True, alpha=0.7,
|
|
142
|
+
edgecolor='black', label='Empirical')
|
|
143
|
+
|
|
144
|
+
# Overlay theoretical distribution
|
|
145
|
+
from scipy.stats import norm
|
|
146
|
+
x = np.linspace(data.min(), data.max(), 100)
|
|
147
|
+
ax.plot(x, norm.pdf(x, data.mean(), data.std()),
|
|
148
|
+
'r-', linewidth=2, label='Normal fit')
|
|
149
|
+
ax.legend()
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### 2D Histogram (Hexbin)
|
|
153
|
+
```python
|
|
154
|
+
hexbin = ax.hexbin(x, y, gridsize=30, cmap='Blues')
|
|
155
|
+
plt.colorbar(hexbin, ax=ax, label='Counts')
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### 2D Histogram (hist2d)
|
|
159
|
+
```python
|
|
160
|
+
h = ax.hist2d(x, y, bins=30, cmap='Blues')
|
|
161
|
+
plt.colorbar(h[3], ax=ax, label='Counts')
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## 5. Box and Violin Plots
|
|
165
|
+
|
|
166
|
+
**Use cases:** Statistical distributions, outlier detection, comparing distributions
|
|
167
|
+
|
|
168
|
+
### Box Plot
|
|
169
|
+
```python
|
|
170
|
+
ax.boxplot([data1, data2, data3],
|
|
171
|
+
labels=['Group A', 'Group B', 'Group C'],
|
|
172
|
+
showmeans=True, meanline=True)
|
|
173
|
+
ax.set_ylabel('Values')
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Horizontal Box Plot
|
|
177
|
+
```python
|
|
178
|
+
ax.boxplot([data1, data2, data3], vert=False,
|
|
179
|
+
labels=['Group A', 'Group B', 'Group C'])
|
|
180
|
+
ax.set_xlabel('Values')
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Violin Plot
|
|
184
|
+
```python
|
|
185
|
+
parts = ax.violinplot([data1, data2, data3],
|
|
186
|
+
positions=[1, 2, 3],
|
|
187
|
+
showmeans=True, showmedians=True)
|
|
188
|
+
ax.set_xticks([1, 2, 3])
|
|
189
|
+
ax.set_xticklabels(['Group A', 'Group B', 'Group C'])
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## 6. Heatmaps
|
|
193
|
+
|
|
194
|
+
**Use cases:** Matrix data, correlations, intensity maps
|
|
195
|
+
|
|
196
|
+
### Basic Heatmap
|
|
197
|
+
```python
|
|
198
|
+
im = ax.imshow(matrix, cmap='coolwarm', aspect='auto')
|
|
199
|
+
plt.colorbar(im, ax=ax, label='Values')
|
|
200
|
+
ax.set_xlabel('X')
|
|
201
|
+
ax.set_ylabel('Y')
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Heatmap with Annotations
|
|
205
|
+
```python
|
|
206
|
+
im = ax.imshow(matrix, cmap='coolwarm')
|
|
207
|
+
plt.colorbar(im, ax=ax)
|
|
208
|
+
|
|
209
|
+
# Add text annotations
|
|
210
|
+
for i in range(matrix.shape[0]):
|
|
211
|
+
for j in range(matrix.shape[1]):
|
|
212
|
+
text = ax.text(j, i, f'{matrix[i, j]:.2f}',
|
|
213
|
+
ha='center', va='center', color='black')
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Correlation Matrix
|
|
217
|
+
```python
|
|
218
|
+
corr = data.corr()
|
|
219
|
+
im = ax.imshow(corr, cmap='RdBu_r', vmin=-1, vmax=1)
|
|
220
|
+
plt.colorbar(im, ax=ax, label='Correlation')
|
|
221
|
+
|
|
222
|
+
# Set tick labels
|
|
223
|
+
ax.set_xticks(range(len(corr)))
|
|
224
|
+
ax.set_yticks(range(len(corr)))
|
|
225
|
+
ax.set_xticklabels(corr.columns, rotation=45, ha='right')
|
|
226
|
+
ax.set_yticklabels(corr.columns)
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
## 7. Contour Plots
|
|
230
|
+
|
|
231
|
+
**Use cases:** 3D data on 2D plane, topography, function visualization
|
|
232
|
+
|
|
233
|
+
### Contour Lines
|
|
234
|
+
```python
|
|
235
|
+
contour = ax.contour(X, Y, Z, levels=10, cmap='viridis')
|
|
236
|
+
ax.clabel(contour, inline=True, fontsize=8)
|
|
237
|
+
plt.colorbar(contour, ax=ax)
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### Filled Contours
|
|
241
|
+
```python
|
|
242
|
+
contourf = ax.contourf(X, Y, Z, levels=20, cmap='viridis')
|
|
243
|
+
plt.colorbar(contourf, ax=ax)
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Combined Contours
|
|
247
|
+
```python
|
|
248
|
+
contourf = ax.contourf(X, Y, Z, levels=20, cmap='viridis', alpha=0.8)
|
|
249
|
+
contour = ax.contour(X, Y, Z, levels=10, colors='black',
|
|
250
|
+
linewidths=0.5, alpha=0.4)
|
|
251
|
+
ax.clabel(contour, inline=True, fontsize=8)
|
|
252
|
+
plt.colorbar(contourf, ax=ax)
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## 8. Pie Charts
|
|
256
|
+
|
|
257
|
+
**Use cases:** Proportions, percentages (use sparingly)
|
|
258
|
+
|
|
259
|
+
### Basic Pie Chart
|
|
260
|
+
```python
|
|
261
|
+
ax.pie(sizes, labels=labels, autopct='%1.1f%%',
|
|
262
|
+
startangle=90, colors=colors)
|
|
263
|
+
ax.axis('equal') # Equal aspect ratio ensures circular pie
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### Exploded Pie Chart
|
|
267
|
+
```python
|
|
268
|
+
explode = (0.1, 0, 0, 0) # Explode first slice
|
|
269
|
+
ax.pie(sizes, explode=explode, labels=labels,
|
|
270
|
+
autopct='%1.1f%%', shadow=True, startangle=90)
|
|
271
|
+
ax.axis('equal')
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Donut Chart
|
|
275
|
+
```python
|
|
276
|
+
ax.pie(sizes, labels=labels, autopct='%1.1f%%',
|
|
277
|
+
wedgeprops=dict(width=0.5), startangle=90)
|
|
278
|
+
ax.axis('equal')
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## 9. Polar Plots
|
|
282
|
+
|
|
283
|
+
**Use cases:** Cyclic data, directional data, radar charts
|
|
284
|
+
|
|
285
|
+
### Basic Polar Plot
|
|
286
|
+
```python
|
|
287
|
+
theta = np.linspace(0, 2*np.pi, 100)
|
|
288
|
+
r = np.abs(np.sin(2*theta))
|
|
289
|
+
|
|
290
|
+
ax = plt.subplot(111, projection='polar')
|
|
291
|
+
ax.plot(theta, r, linewidth=2)
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
### Radar Chart
|
|
295
|
+
```python
|
|
296
|
+
categories = ['A', 'B', 'C', 'D', 'E']
|
|
297
|
+
values = [4, 3, 5, 2, 4]
|
|
298
|
+
|
|
299
|
+
# Add first value to the end to close the polygon
|
|
300
|
+
angles = np.linspace(0, 2*np.pi, len(categories), endpoint=False)
|
|
301
|
+
values_closed = np.concatenate((values, [values[0]]))
|
|
302
|
+
angles_closed = np.concatenate((angles, [angles[0]]))
|
|
303
|
+
|
|
304
|
+
ax = plt.subplot(111, projection='polar')
|
|
305
|
+
ax.plot(angles_closed, values_closed, 'o-', linewidth=2)
|
|
306
|
+
ax.fill(angles_closed, values_closed, alpha=0.25)
|
|
307
|
+
ax.set_xticks(angles)
|
|
308
|
+
ax.set_xticklabels(categories)
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
## 10. Stream and Quiver Plots
|
|
312
|
+
|
|
313
|
+
**Use cases:** Vector fields, flow visualization
|
|
314
|
+
|
|
315
|
+
### Quiver Plot (Vector Field)
|
|
316
|
+
```python
|
|
317
|
+
ax.quiver(X, Y, U, V, alpha=0.8)
|
|
318
|
+
ax.set_xlabel('X')
|
|
319
|
+
ax.set_ylabel('Y')
|
|
320
|
+
ax.set_aspect('equal')
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
### Stream Plot
|
|
324
|
+
```python
|
|
325
|
+
ax.streamplot(X, Y, U, V, density=1.5, color='k', linewidth=1)
|
|
326
|
+
ax.set_xlabel('X')
|
|
327
|
+
ax.set_ylabel('Y')
|
|
328
|
+
ax.set_aspect('equal')
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
## 11. Fill Between
|
|
332
|
+
|
|
333
|
+
**Use cases:** Uncertainty bounds, confidence intervals, areas under curves
|
|
334
|
+
|
|
335
|
+
### Fill Between Two Curves
|
|
336
|
+
```python
|
|
337
|
+
ax.plot(x, y, 'k-', linewidth=2, label='Mean')
|
|
338
|
+
ax.fill_between(x, y - std, y + std, alpha=0.3,
|
|
339
|
+
label='±1 std dev')
|
|
340
|
+
ax.legend()
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
### Fill Between with Condition
|
|
344
|
+
```python
|
|
345
|
+
ax.plot(x, y1, label='Line 1')
|
|
346
|
+
ax.plot(x, y2, label='Line 2')
|
|
347
|
+
ax.fill_between(x, y1, y2, where=(y2 >= y1),
|
|
348
|
+
alpha=0.3, label='y2 > y1', interpolate=True)
|
|
349
|
+
ax.legend()
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
## 12. 3D Plots
|
|
353
|
+
|
|
354
|
+
**Use cases:** Three-dimensional data visualization
|
|
355
|
+
|
|
356
|
+
### 3D Scatter
|
|
357
|
+
```python
|
|
358
|
+
from mpl_toolkits.mplot3d import Axes3D
|
|
359
|
+
|
|
360
|
+
fig = plt.figure(figsize=(10, 8))
|
|
361
|
+
ax = fig.add_subplot(111, projection='3d')
|
|
362
|
+
scatter = ax.scatter(x, y, z, c=colors, cmap='viridis',
|
|
363
|
+
marker='o', s=50)
|
|
364
|
+
plt.colorbar(scatter, ax=ax)
|
|
365
|
+
ax.set_xlabel('X')
|
|
366
|
+
ax.set_ylabel('Y')
|
|
367
|
+
ax.set_zlabel('Z')
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
### 3D Surface Plot
|
|
371
|
+
```python
|
|
372
|
+
fig = plt.figure(figsize=(10, 8))
|
|
373
|
+
ax = fig.add_subplot(111, projection='3d')
|
|
374
|
+
surf = ax.plot_surface(X, Y, Z, cmap='viridis',
|
|
375
|
+
edgecolor='none', alpha=0.9)
|
|
376
|
+
plt.colorbar(surf, ax=ax)
|
|
377
|
+
ax.set_xlabel('X')
|
|
378
|
+
ax.set_ylabel('Y')
|
|
379
|
+
ax.set_zlabel('Z')
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
### 3D Wireframe
|
|
383
|
+
```python
|
|
384
|
+
fig = plt.figure(figsize=(10, 8))
|
|
385
|
+
ax = fig.add_subplot(111, projection='3d')
|
|
386
|
+
ax.plot_wireframe(X, Y, Z, color='black', linewidth=0.5)
|
|
387
|
+
ax.set_xlabel('X')
|
|
388
|
+
ax.set_ylabel('Y')
|
|
389
|
+
ax.set_zlabel('Z')
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
### 3D Contour
|
|
393
|
+
```python
|
|
394
|
+
fig = plt.figure(figsize=(10, 8))
|
|
395
|
+
ax = fig.add_subplot(111, projection='3d')
|
|
396
|
+
ax.contour(X, Y, Z, levels=15, cmap='viridis')
|
|
397
|
+
ax.set_xlabel('X')
|
|
398
|
+
ax.set_ylabel('Y')
|
|
399
|
+
ax.set_zlabel('Z')
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
## 13. Specialized Plots
|
|
403
|
+
|
|
404
|
+
### Stem Plot
|
|
405
|
+
```python
|
|
406
|
+
ax.stem(x, y, linefmt='C0-', markerfmt='C0o', basefmt='k-')
|
|
407
|
+
ax.set_xlabel('X')
|
|
408
|
+
ax.set_ylabel('Y')
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
### Filled Polygon
|
|
412
|
+
```python
|
|
413
|
+
vertices = [(0, 0), (1, 0), (1, 1), (0, 1)]
|
|
414
|
+
from matplotlib.patches import Polygon
|
|
415
|
+
polygon = Polygon(vertices, closed=True, edgecolor='black',
|
|
416
|
+
facecolor='lightblue', alpha=0.5)
|
|
417
|
+
ax.add_patch(polygon)
|
|
418
|
+
ax.set_xlim(-0.5, 1.5)
|
|
419
|
+
ax.set_ylim(-0.5, 1.5)
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
### Staircase Plot
|
|
423
|
+
```python
|
|
424
|
+
ax.stairs(values, edges, fill=True, alpha=0.5)
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### Broken Barh (Gantt-style)
|
|
428
|
+
```python
|
|
429
|
+
ax.broken_barh([(10, 50), (100, 20), (130, 10)], (10, 9),
|
|
430
|
+
facecolors='tab:blue')
|
|
431
|
+
ax.broken_barh([(10, 20), (50, 50), (120, 30)], (20, 9),
|
|
432
|
+
facecolors='tab:orange')
|
|
433
|
+
ax.set_ylim(5, 35)
|
|
434
|
+
ax.set_xlim(0, 200)
|
|
435
|
+
ax.set_xlabel('Time')
|
|
436
|
+
ax.set_yticks([15, 25])
|
|
437
|
+
ax.set_yticklabels(['Task 1', 'Task 2'])
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
## 14. Time Series Plots
|
|
441
|
+
|
|
442
|
+
### Basic Time Series
|
|
443
|
+
```python
|
|
444
|
+
import pandas as pd
|
|
445
|
+
import matplotlib.dates as mdates
|
|
446
|
+
|
|
447
|
+
ax.plot(dates, values, linewidth=2)
|
|
448
|
+
ax.xaxis.set_major_formatter(mdates.DateFormatter('%Y-%m-%d'))
|
|
449
|
+
ax.xaxis.set_major_locator(mdates.DayLocator(interval=7))
|
|
450
|
+
plt.xticks(rotation=45)
|
|
451
|
+
ax.set_xlabel('Date')
|
|
452
|
+
ax.set_ylabel('Value')
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
### Time Series with Shaded Regions
|
|
456
|
+
```python
|
|
457
|
+
ax.plot(dates, values, linewidth=2)
|
|
458
|
+
# Shade weekends or specific periods
|
|
459
|
+
ax.axvspan(start_date, end_date, alpha=0.2, color='gray')
|
|
460
|
+
```
|
|
461
|
+
|
|
462
|
+
## Plot Selection Guide
|
|
463
|
+
|
|
464
|
+
| Data Type | Recommended Plot | Alternative Options |
|
|
465
|
+
|-----------|-----------------|---------------------|
|
|
466
|
+
| Single continuous variable | Histogram, KDE | Box plot, Violin plot |
|
|
467
|
+
| Two continuous variables | Scatter plot | Hexbin, 2D histogram |
|
|
468
|
+
| Time series | Line plot | Area plot, Step plot |
|
|
469
|
+
| Categorical vs continuous | Bar chart, Box plot | Violin plot, Strip plot |
|
|
470
|
+
| Two categorical variables | Heatmap | Grouped bar chart |
|
|
471
|
+
| Three continuous variables | 3D scatter, Contour | Color-coded scatter |
|
|
472
|
+
| Proportions | Bar chart | Pie chart (use sparingly) |
|
|
473
|
+
| Distributions comparison | Box plot, Violin plot | Overlaid histograms |
|
|
474
|
+
| Correlation matrix | Heatmap | Clustered heatmap |
|
|
475
|
+
| Vector field | Quiver plot, Stream plot | - |
|
|
476
|
+
| Function visualization | Line plot, Contour | 3D surface |
|