Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Do not commit or push if either fails. Fix issues first.
- `src/mplplots/styles/GraphPadPrism.mplstyle` sets every text element to Arial Regular 8 pt:
tick labels, axis labels, axes and figure titles, figure-level axis labels, and the legend and
its title. Do not give any of them another size or weight.
- Axis lines, major and minor ticks, and data lines (including error bars) are 1 pt wide.
- It saves at 600 dpi (`savefig.dpi`), embeds TrueType fonts in PDF and PostScript
(`pdf.fonttype` and `ps.fonttype` 42), stores SVG text as paths, sets no figure size, and does
not crop saved figures (no `savefig.bbox`), so a saved file has exactly the figure's size.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ the `stylelib/` folder of your Matplotlib config directory (`matplotlib.get_conf
| Figure | No figure size is set. Saved at 600 dpi and shown on screen at 300 dpi. Saved files are not cropped, so they keep the figure's size; pass `bbox_inches="tight"` to `savefig` to crop to the drawn content. |
| Text | Arial Regular 8 pt (see [Fonts](#fonts)) for every text element: tick labels, axis labels, axes and figure titles, and the legend and its title. Math text (`$...$`) uses the same font. |
| Vector output | PDF and PostScript embed fonts as TrueType (Type 42), so text stays editable and passes journal checks that reject Type 3 fonts. SVG stores glyphs as paths. |
| Axes | 1.5 pt axis lines, with the top and right spines removed. Autoscaled limits are rounded out to tick values. |
| Ticks | 1.5 pt major and minor ticks, with minor ticks shown on both axes. |
| Lines & markers | 2 pt lines. Markers take the color of their line. Error bars have 3 pt caps. |
| Axes | 1 pt axis lines, with the top and right spines removed. Autoscaled limits are rounded out to tick values. |
| Ticks | 1 pt major and minor ticks, with minor ticks shown on both axes. |
| Lines & markers | 1 pt lines, also used for error bars. Markers take the color of their line. Error bars have 3 pt caps. |
| Legend | No frame, placed in the upper right. |

For every setting, see the [style file](src/mplplots/styles/GraphPadPrism.mplstyle).
Expand Down
Binary file modified examples/custom_multiline.pdf
Binary file not shown.
Binary file modified examples/custom_multiline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading