diff --git a/AGENTS.md b/AGENTS.md index 6bb20e7..61b7691 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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. diff --git a/README.md b/README.md index 467cc69..6b0a7e1 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/examples/custom_multiline.pdf b/examples/custom_multiline.pdf index a2e2a2f..28b95ff 100644 Binary files a/examples/custom_multiline.pdf and b/examples/custom_multiline.pdf differ diff --git a/examples/custom_multiline.png b/examples/custom_multiline.png index 404d700..ef067a4 100644 Binary files a/examples/custom_multiline.png and b/examples/custom_multiline.png differ diff --git a/examples/custom_multiline.svg b/examples/custom_multiline.svg index ec45620..ac28c58 100644 --- a/examples/custom_multiline.svg +++ b/examples/custom_multiline.svg @@ -40,12 +40,12 @@ z - +" style="stroke: #000000"/> - + @@ -85,7 +85,7 @@ z - + @@ -125,7 +125,7 @@ z - + @@ -159,7 +159,7 @@ z - + @@ -207,7 +207,7 @@ z - + @@ -262,89 +262,89 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + - + - + - + - + - + - + - + @@ -353,12 +353,12 @@ L 0 2 - +" style="stroke: #000000"/> - + @@ -427,7 +427,7 @@ z - + @@ -443,7 +443,7 @@ z - + @@ -459,7 +459,7 @@ z - + @@ -474,7 +474,7 @@ z - + @@ -489,7 +489,7 @@ z - + @@ -504,7 +504,7 @@ z - + @@ -519,47 +519,47 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + - + @@ -665,7 +665,7 @@ L 200.505215 106.28406 L 202.218811 103.276438 L 203.932407 100.244348 L 205.646003 97.2 -" clip-path="url(#p848515bb63)" style="fill: none; stroke: #bce4f9; stroke-width: 2; stroke-linecap: square"/> +" clip-path="url(#p848515bb63)" style="fill: none; stroke: #bce4f9; stroke-linecap: square"/> +" clip-path="url(#p848515bb63)" style="fill: none; stroke: #7bd3f2; stroke-linecap: square"/> +" clip-path="url(#p848515bb63)" style="fill: none; stroke: #f0aecb; stroke-linecap: square"/> +" clip-path="url(#p848515bb63)" style="fill: none; stroke: #e88791; stroke-linecap: square"/> +" clip-path="url(#p848515bb63)" style="fill: none; stroke: #c4ddb1; stroke-linecap: square"/> +" clip-path="url(#p848515bb63)" style="fill: none; stroke: #97d9a8; stroke-linecap: square"/> +" clip-path="url(#p848515bb63)" style="fill: none; stroke: #cccce6; stroke-linecap: square"/> +" clip-path="url(#p848515bb63)" style="fill: none; stroke: #9d9dcf; stroke-linecap: square"/> +" clip-path="url(#p848515bb63)" style="fill: none; stroke: #8fb0dd; stroke-linecap: square"/> +" clip-path="url(#p848515bb63)" style="fill: none; stroke: #f0cea4; stroke-linecap: square"/> +" clip-path="url(#p848515bb63)" style="fill: none; stroke: #f8a450; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> @@ -2137,7 +2137,7 @@ z +" style="fill: none; stroke: #bce4f9; stroke-linecap: square"/> @@ -2165,7 +2165,7 @@ z +" style="fill: none; stroke: #7bd3f2; stroke-linecap: square"/> @@ -2182,7 +2182,7 @@ L 278.4 42.932031 +" style="fill: none; stroke: #f0aecb; stroke-linecap: square"/> @@ -2199,7 +2199,7 @@ L 278.4 54.439844 +" style="fill: none; stroke: #e88791; stroke-linecap: square"/> @@ -2251,7 +2251,7 @@ z +" style="fill: none; stroke: #c4ddb1; stroke-linecap: square"/> @@ -2268,7 +2268,7 @@ L 278.4 77.455469 +" style="fill: none; stroke: #97d9a8; stroke-linecap: square"/> @@ -2285,7 +2285,7 @@ L 278.4 88.963281 +" style="fill: none; stroke: #cccce6; stroke-linecap: square"/> @@ -2302,7 +2302,7 @@ L 278.4 100.471094 +" style="fill: none; stroke: #9d9dcf; stroke-linecap: square"/> @@ -2335,7 +2335,7 @@ z +" style="fill: none; stroke: #8fb0dd; stroke-linecap: square"/> @@ -2352,7 +2352,7 @@ L 278.4 123.486719 +" style="fill: none; stroke: #f0cea4; stroke-linecap: square"/> @@ -2406,7 +2406,7 @@ z +" style="fill: none; stroke: #f8a450; stroke-linecap: square"/> diff --git a/examples/dusk_hbar.pdf b/examples/dusk_hbar.pdf index c4c85c0..e2fe7a2 100644 Binary files a/examples/dusk_hbar.pdf and b/examples/dusk_hbar.pdf differ diff --git a/examples/dusk_hbar.png b/examples/dusk_hbar.png index a966faa..b3fe471 100644 Binary files a/examples/dusk_hbar.png and b/examples/dusk_hbar.png differ diff --git a/examples/dusk_hbar.svg b/examples/dusk_hbar.svg index d064c75..b885b66 100644 --- a/examples/dusk_hbar.svg +++ b/examples/dusk_hbar.svg @@ -128,12 +128,12 @@ z - +" style="stroke: #000000"/> - + @@ -173,7 +173,7 @@ z - + @@ -201,7 +201,7 @@ z - + @@ -242,7 +242,7 @@ z - + @@ -291,7 +291,7 @@ z - + @@ -326,7 +326,7 @@ z - + @@ -367,40 +367,40 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + @@ -409,12 +409,12 @@ L 0 2 - +" style="stroke: #000000"/> - + @@ -539,7 +539,7 @@ z - + @@ -599,7 +599,7 @@ z - + @@ -644,7 +644,7 @@ z - + @@ -691,7 +691,7 @@ z - + @@ -726,7 +726,7 @@ z - + @@ -759,7 +759,7 @@ z - + @@ -811,7 +811,7 @@ z - + @@ -846,7 +846,7 @@ z - + @@ -864,7 +864,7 @@ z - + @@ -901,7 +901,7 @@ z - + @@ -937,12 +937,12 @@ z +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> diff --git a/examples/get_colors_demo.pdf b/examples/get_colors_demo.pdf index 0967e50..a37d742 100644 Binary files a/examples/get_colors_demo.pdf and b/examples/get_colors_demo.pdf differ diff --git a/examples/get_colors_demo.png b/examples/get_colors_demo.png index 8abb1b8..058bff8 100644 Binary files a/examples/get_colors_demo.png and b/examples/get_colors_demo.png differ diff --git a/examples/get_colors_demo.svg b/examples/get_colors_demo.svg index 787e52e..50acd23 100644 --- a/examples/get_colors_demo.svg +++ b/examples/get_colors_demo.svg @@ -89,12 +89,12 @@ z - +" style="stroke: #000000"/> - + @@ -134,7 +134,7 @@ z - + @@ -174,7 +174,7 @@ z - + @@ -208,7 +208,7 @@ z - + @@ -256,68 +256,68 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + - + - + - + - + @@ -325,12 +325,12 @@ L -2 0 +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> @@ -769,7 +769,7 @@ z - + @@ -782,7 +782,7 @@ z - + @@ -795,7 +795,7 @@ z - + @@ -808,7 +808,7 @@ z - + @@ -821,63 +821,63 @@ z - + - + - + - + - + - + - + - + - + @@ -885,12 +885,12 @@ z +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> @@ -1038,7 +1038,7 @@ z - + @@ -1051,7 +1051,7 @@ z - + @@ -1064,7 +1064,7 @@ z - + @@ -1077,7 +1077,7 @@ z - + @@ -1090,63 +1090,63 @@ z - + - + - + - + - + - + - + - + - + @@ -1154,12 +1154,12 @@ z +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> diff --git a/examples/graphpadprism_bar.pdf b/examples/graphpadprism_bar.pdf index d7406de..ae5fb4e 100644 Binary files a/examples/graphpadprism_bar.pdf and b/examples/graphpadprism_bar.pdf differ diff --git a/examples/graphpadprism_bar.png b/examples/graphpadprism_bar.png index 606abfa..a102382 100644 Binary files a/examples/graphpadprism_bar.png and b/examples/graphpadprism_bar.png differ diff --git a/examples/graphpadprism_bar.svg b/examples/graphpadprism_bar.svg index 3b54e02..abaec0a 100644 --- a/examples/graphpadprism_bar.svg +++ b/examples/graphpadprism_bar.svg @@ -80,12 +80,12 @@ z - +" style="stroke: #000000"/> - + @@ -118,7 +118,7 @@ z - + @@ -173,7 +173,7 @@ z - + @@ -213,7 +213,7 @@ z - + @@ -255,7 +255,7 @@ z - + @@ -485,12 +485,12 @@ z - +" style="stroke: #000000"/> - + @@ -530,7 +530,7 @@ z - + @@ -571,7 +571,7 @@ z - + @@ -606,7 +606,7 @@ z - + @@ -655,7 +655,7 @@ z - + @@ -711,89 +711,89 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + - + - + - + - + - + - + - + @@ -854,12 +854,12 @@ z +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> diff --git a/examples/graphpadprism_errorbar.pdf b/examples/graphpadprism_errorbar.pdf index 68dc57c..4f71fe6 100644 Binary files a/examples/graphpadprism_errorbar.pdf and b/examples/graphpadprism_errorbar.pdf differ diff --git a/examples/graphpadprism_errorbar.png b/examples/graphpadprism_errorbar.png index 46ca69e..d3a177d 100644 Binary files a/examples/graphpadprism_errorbar.png and b/examples/graphpadprism_errorbar.png differ diff --git a/examples/graphpadprism_errorbar.svg b/examples/graphpadprism_errorbar.svg index 04264c2..3174e71 100644 --- a/examples/graphpadprism_errorbar.svg +++ b/examples/graphpadprism_errorbar.svg @@ -40,12 +40,12 @@ z - +" style="stroke: #000000"/> - + @@ -85,7 +85,7 @@ z - + @@ -125,7 +125,7 @@ z - + @@ -159,7 +159,7 @@ z - + @@ -207,7 +207,7 @@ z - + @@ -262,7 +262,7 @@ z - + @@ -290,40 +290,40 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + @@ -540,12 +540,12 @@ z - +" style="stroke: #000000"/> - + @@ -585,7 +585,7 @@ z - + @@ -599,7 +599,7 @@ z - + @@ -613,7 +613,7 @@ z - + @@ -627,7 +627,7 @@ z - + @@ -641,7 +641,7 @@ z - + @@ -690,7 +690,7 @@ z - + @@ -704,47 +704,47 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + - + @@ -782,12 +782,12 @@ z +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #f0c0b8"/> +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #f0c0b8"/> @@ -822,12 +822,12 @@ L -4 -0 +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #e8b8a8"/> +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #e8b8a8"/> @@ -862,12 +862,12 @@ L -4 -0 +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #e4b0b0"/> +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #e4b0b0"/> @@ -902,12 +902,12 @@ L -4 -0 +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #e0c0b0"/> +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #e0c0b0"/> @@ -942,12 +942,12 @@ L -4 -0 +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #dcc0bc"/> +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #dcc0bc"/> @@ -1072,12 +1072,12 @@ z +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> @@ -1338,12 +1338,12 @@ z +" style="fill: none; stroke: #f0c0b8"/> +" style="fill: none; stroke: #f0c0b8"/> @@ -1420,12 +1420,12 @@ z +" style="fill: none; stroke: #e8b8a8"/> +" style="fill: none; stroke: #e8b8a8"/> @@ -1468,12 +1468,12 @@ L 234.4 38.932031 +" style="fill: none; stroke: #e4b0b0"/> +" style="fill: none; stroke: #e4b0b0"/> @@ -1516,12 +1516,12 @@ L 234.4 50.439844 +" style="fill: none; stroke: #e0c0b0"/> +" style="fill: none; stroke: #e0c0b0"/> @@ -1564,12 +1564,12 @@ L 234.4 61.947656 +" style="fill: none; stroke: #dcc0bc"/> +" style="fill: none; stroke: #dcc0bc"/> diff --git a/examples/graphpadprism_grouped_bar.pdf b/examples/graphpadprism_grouped_bar.pdf index 62e0e97..cc50780 100644 Binary files a/examples/graphpadprism_grouped_bar.pdf and b/examples/graphpadprism_grouped_bar.pdf differ diff --git a/examples/graphpadprism_grouped_bar.png b/examples/graphpadprism_grouped_bar.png index f369c52..641ac8e 100644 Binary files a/examples/graphpadprism_grouped_bar.png and b/examples/graphpadprism_grouped_bar.png differ diff --git a/examples/graphpadprism_grouped_bar.svg b/examples/graphpadprism_grouped_bar.svg index c38c57e..71cf3fb 100644 --- a/examples/graphpadprism_grouped_bar.svg +++ b/examples/graphpadprism_grouped_bar.svg @@ -136,12 +136,12 @@ z - +" style="stroke: #000000"/> - + @@ -201,7 +201,7 @@ z - + @@ -242,7 +242,7 @@ z - + @@ -291,7 +291,7 @@ z - + @@ -328,12 +328,12 @@ z - +" style="stroke: #000000"/> - + @@ -373,7 +373,7 @@ z - + @@ -387,7 +387,7 @@ z - + @@ -401,7 +401,7 @@ z - + @@ -450,7 +450,7 @@ z - + @@ -506,7 +506,7 @@ z - + @@ -521,40 +521,40 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + @@ -682,12 +682,12 @@ z +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> diff --git a/examples/graphpadprism_ocean.pdf b/examples/graphpadprism_ocean.pdf index fbec780..ad6f245 100644 Binary files a/examples/graphpadprism_ocean.pdf and b/examples/graphpadprism_ocean.pdf differ diff --git a/examples/graphpadprism_ocean.png b/examples/graphpadprism_ocean.png index 9ab6496..3dd9bd8 100644 Binary files a/examples/graphpadprism_ocean.png and b/examples/graphpadprism_ocean.png differ diff --git a/examples/graphpadprism_ocean.svg b/examples/graphpadprism_ocean.svg index a81ec62..a90d67e 100644 --- a/examples/graphpadprism_ocean.svg +++ b/examples/graphpadprism_ocean.svg @@ -40,12 +40,12 @@ z - +" style="stroke: #000000"/> - + @@ -85,7 +85,7 @@ z - + @@ -125,7 +125,7 @@ z - + @@ -159,7 +159,7 @@ z - + @@ -207,7 +207,7 @@ z - + @@ -262,7 +262,7 @@ z - + @@ -290,40 +290,40 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + @@ -423,12 +423,12 @@ z - +" style="stroke: #000000"/> - + @@ -485,7 +485,7 @@ z - + @@ -501,7 +501,7 @@ z - + @@ -517,7 +517,7 @@ z - + @@ -532,7 +532,7 @@ z - + @@ -547,7 +547,7 @@ z - + @@ -562,7 +562,7 @@ z - + @@ -577,47 +577,47 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + - + @@ -814,7 +814,7 @@ L 204.979592 77.867482 L 208.653061 85.186181 L 212.326531 92.256423 L 216 98.78476 -" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #b4e0f0; stroke-width: 2; stroke-linecap: square"/> +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #b4e0f0; stroke-linecap: square"/> +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #88cce4; stroke-linecap: square"/> +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #6bc0d8; stroke-linecap: square"/> +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #a0d4dc; stroke-linecap: square"/> +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #78b8cc; stroke-linecap: square"/> +" clip-path="url(#p928b5d79c3)" style="fill: none; stroke: #5ca8c4; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> @@ -1396,7 +1396,7 @@ z +" style="fill: none; stroke: #b4e0f0; stroke-linecap: square"/> @@ -1449,7 +1449,7 @@ z +" style="fill: none; stroke: #88cce4; stroke-linecap: square"/> @@ -1466,7 +1466,7 @@ L 242.4 42.932031 +" style="fill: none; stroke: #6bc0d8; stroke-linecap: square"/> @@ -1483,7 +1483,7 @@ L 242.4 54.439844 +" style="fill: none; stroke: #a0d4dc; stroke-linecap: square"/> @@ -1535,7 +1535,7 @@ z +" style="fill: none; stroke: #78b8cc; stroke-linecap: square"/> @@ -1552,7 +1552,7 @@ L 242.4 77.455469 +" style="fill: none; stroke: #5ca8c4; stroke-linecap: square"/> diff --git a/examples/graphpadprism_style.pdf b/examples/graphpadprism_style.pdf index 1106722..37942e5 100644 Binary files a/examples/graphpadprism_style.pdf and b/examples/graphpadprism_style.pdf differ diff --git a/examples/graphpadprism_style.png b/examples/graphpadprism_style.png index 1eadc25..bec0ff1 100644 Binary files a/examples/graphpadprism_style.png and b/examples/graphpadprism_style.png differ diff --git a/examples/graphpadprism_style.svg b/examples/graphpadprism_style.svg index f06f86b..fd30335 100644 --- a/examples/graphpadprism_style.svg +++ b/examples/graphpadprism_style.svg @@ -40,12 +40,12 @@ z - +" style="stroke: #000000"/> - + @@ -85,7 +85,7 @@ z - + @@ -125,7 +125,7 @@ z - + @@ -159,7 +159,7 @@ z - + @@ -207,7 +207,7 @@ z - + @@ -262,7 +262,7 @@ z - + @@ -290,40 +290,40 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + @@ -358,12 +358,12 @@ z - +" style="stroke: #000000"/> - + @@ -420,7 +420,7 @@ z - + @@ -436,7 +436,7 @@ z - + @@ -452,7 +452,7 @@ z - + @@ -467,7 +467,7 @@ z - + @@ -482,7 +482,7 @@ z - + @@ -497,7 +497,7 @@ z - + @@ -512,47 +512,47 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + - + @@ -637,7 +637,7 @@ L 188.081633 77.867482 L 191.387755 85.186181 L 194.693878 92.256423 L 198 98.78476 -" clip-path="url(#p5382000584)" style="fill: none; stroke: #4f9bcb; stroke-width: 2; stroke-linecap: square"/> +" clip-path="url(#p5382000584)" style="fill: none; stroke: #4f9bcb; stroke-linecap: square"/> +" clip-path="url(#p5382000584)" style="fill: none; stroke: #f34a36; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> @@ -1136,7 +1136,7 @@ z +" style="fill: none; stroke: #4f9bcb; stroke-linecap: square"/> @@ -1202,7 +1202,7 @@ z +" style="fill: none; stroke: #f34a36; stroke-linecap: square"/> diff --git a/examples/scatter_comparison.pdf b/examples/scatter_comparison.pdf index 3b6a3f6..d1fa6d1 100644 Binary files a/examples/scatter_comparison.pdf and b/examples/scatter_comparison.pdf differ diff --git a/examples/scatter_comparison.png b/examples/scatter_comparison.png index 2be4fd3..5e25bf4 100644 Binary files a/examples/scatter_comparison.png and b/examples/scatter_comparison.png differ diff --git a/examples/scatter_comparison.svg b/examples/scatter_comparison.svg index 6a87c47..f786ea4 100644 --- a/examples/scatter_comparison.svg +++ b/examples/scatter_comparison.svg @@ -866,12 +866,12 @@ z +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> @@ -2003,12 +2003,12 @@ z +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> @@ -2941,12 +2941,12 @@ z +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> diff --git a/examples/spring_area.pdf b/examples/spring_area.pdf index a24f4b3..5b643cb 100644 Binary files a/examples/spring_area.pdf and b/examples/spring_area.pdf differ diff --git a/examples/spring_area.png b/examples/spring_area.png index e757f41..36c1eb2 100644 Binary files a/examples/spring_area.png and b/examples/spring_area.png differ diff --git a/examples/spring_area.svg b/examples/spring_area.svg index 3d6b345..b60e6e4 100644 --- a/examples/spring_area.svg +++ b/examples/spring_area.svg @@ -1066,12 +1066,12 @@ z - +" style="stroke: #000000"/> - + @@ -1111,7 +1111,7 @@ z - + @@ -1138,7 +1138,7 @@ z - + @@ -1178,7 +1178,7 @@ z - + @@ -1226,7 +1226,7 @@ z - + @@ -1260,89 +1260,89 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + - + - + - + - + - + - + - + @@ -1351,12 +1351,12 @@ L 0 2 - +" style="stroke: #000000"/> - + @@ -1369,7 +1369,7 @@ L -3.5 0 - + @@ -1382,7 +1382,7 @@ L -3.5 0 - + @@ -1395,7 +1395,7 @@ L -3.5 0 - + @@ -1443,7 +1443,7 @@ z - + @@ -1498,89 +1498,89 @@ z - +" style="stroke: #000000"/> - + - + - + - + - + - + - + - + - + - + - + - + @@ -1588,12 +1588,12 @@ L -2 0 +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> +" style="fill: none; stroke: #000000; stroke-linejoin: miter; stroke-linecap: square"/> diff --git a/src/mplplots/styles/GraphPadPrism.mplstyle b/src/mplplots/styles/GraphPadPrism.mplstyle index cc69a48..d70f18d 100644 --- a/src/mplplots/styles/GraphPadPrism.mplstyle +++ b/src/mplplots/styles/GraphPadPrism.mplstyle @@ -4,7 +4,7 @@ axes.autolimit_mode: round_numbers axes.labelsize: 8 axes.labelweight: normal -axes.linewidth: 1.5 +axes.linewidth: 1 axes.spines.right: False axes.spines.top: False axes.titlesize: 8 @@ -39,7 +39,7 @@ legend.frameon: False legend.loc: upper right legend.title_fontsize: 8 -lines.linewidth: 2 +lines.linewidth: 1 # "sans" resolves through font.sans-serif, so math uses the same font as the text # (Arial when installed). @@ -62,11 +62,11 @@ savefig.dpi: 600 svg.fonttype: path xtick.labelsize: 8 -xtick.major.width: 1.5 +xtick.major.width: 1 xtick.minor.visible: True -xtick.minor.width: 1.5 +xtick.minor.width: 1 ytick.labelsize: 8 -ytick.major.width: 1.5 +ytick.major.width: 1 ytick.minor.visible: True -ytick.minor.width: 1.5 +ytick.minor.width: 1 diff --git a/tests/test_styles.py b/tests/test_styles.py index f9bd35b..d16c47d 100644 --- a/tests/test_styles.py +++ b/tests/test_styles.py @@ -155,6 +155,21 @@ def test_style_hides_top_right_spines(self) -> None: assert matplotlib.rcParams["axes.spines.top"] is False assert matplotlib.rcParams["axes.spines.right"] is False + def test_axis_lines_ticks_and_data_lines_are_1pt(self) -> None: + with plt.style.context(GRAPHPAD_STYLE): + _, ax = plt.subplots() + (data,) = ax.plot([1, 2], [1, 2]) + spines = [ax.spines["left"], ax.spines["bottom"]] + ticks = [ + tick.tick1line + for axis in (ax.xaxis, ax.yaxis) + for tick in axis.get_major_ticks() + axis.get_minor_ticks() + ] + widths = {spine.get_linewidth() for spine in spines} + widths |= {line.get_markeredgewidth() for line in ticks} + widths.add(data.get_linewidth()) + assert widths == {1} + def test_style_applies_to_plot(self) -> None: style_path = str(STYLE_PATH) with plt.style.context(style_path):