claude_plugin/skills/sciris-plotting/SKILL.md
Use when plotting with Sciris or Matplotlib — sc.options, sc.dateformatter, sc.commaticks, sc.SIticks, sc.boxoff, sc.setylim, sc.figlayout, sc.getrowscols, sc.vectocolor, sc.gridcolors, sc.scatter3d, sc.savefig, plot styles (sciris.simple, sciris.fancy), colormaps (parula, orangeblue), or 3D plotting.
npx skillsauth add sciris/sciris sciris-plottingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reference for Matplotlib extensions and color utilities. See full tutorial: docs/tutorials/tut_plotting.ipynb.
If you need more detail, use your MCP tools (Context7 or GitMCP) to look up current Sciris documentation, or consult the other Sciris skills.
sc.options(jupyter=True) # High-res retina backend for Jupyter
sc.options(dpi=120) # Set figure DPI
sc.options(font='serif') # Change font globally
sc.options(font='default') # Reset font
with plt.style.context('sciris.simple'): # Clean, minimal style
make_plot()
with plt.style.context('sciris.fancy'): # Seaborn-like style
make_plot()
sc.dateformatter() # Auto date formatting on x-axis
sc.commaticks() # Comma-separated tick labels (1,000,000)
sc.SIticks() # SI notation (1M, 2.5k)
sc.setylim() # Auto y-limits (starts at 0)
sc.boxoff() # Remove top/right spines
sc.figlayout() # Tight layout (remove whitespace)
rows, cols = sc.getrowscols(14) # Auto grid for N subplots
colors = sc.vectocolor(n, cmap='turbo') # Map values to colormap
colors = sc.vectocolor(values, cmap='parula') # Custom Sciris colormaps: parula, orangeblue
c = sc.arraytocolor(data_2d) # 2D version
colors = sc.gridcolors(n) # n<=9: ColorBrewer, 10-19: Kelly's, 20+: uniform RGB
colors = sc.gridcolors(n, asarray=True) # As numpy array
ax = sc.ax3d(121) # Create 3D subplot
sc.scatter3d(x, y, z, c=colors, ax=ax)
sc.bar3d(data, ax=ax)
sc.surf3d(data, cmap='orangeblue')
sc.savefig('fig.png') # Publication quality + metadata
sc.savefig('fig.png', comments='v2') # With custom comments
testing
Use when working with Sciris miscellaneous utilities — sc.mergedicts, sc.mergelists, sc.tolist, sc.toarray, sc.isnumber, sc.suggest, sc.download, sc.runcommand, sc.importbypath, sc.loadtext, sc.help, sc.traceback, sc.autolist, sc.pp, or type checking/conversion.
development
Use when printing or formatting output with Sciris — sc.heading, sc.printgreen, sc.printblue, colored output, sc.strjoin, sc.newlinejoin, sc.pr, sc.prettyobj, sc.indent, sc.progressbar, sc.printmedian, or monitoring loop progress.
development
Use when parallelizing code or profiling performance with Sciris — sc.parallelize, sc.Parallel, iterarg, iterkwargs, maxcpu, maxmem, async parallelization, sc.profile, sc.benchmark, sc.memload, sc.checkram, line profiling, or CPU/memory monitoring.
development
Use when the user needs to implement a basic Sciris features — finding array values, plotting with date formatting, objdict containers, saving/loading objects, or parallelization.