garrettj403 / SciencePlots

Matplotlib styles for scientific plotting
MIT License
6.96k stars 700 forks source link

How to implement a two-column chart #99

Closed 233thzhang closed 1 year ago

233thzhang commented 1 year ago

image I would like to know if scienceplots can achieve this effect.

echedey-ls commented 1 year ago

The 2x2 plot grid pretty easy to look for in the Internet. https://matplotlib.org/stable/tutorials/intermediate/arranging_axes.html#sphx-glr-tutorials-intermediate-arranging-axes-py

For the styles, I think you can't apply a style for each one, but with axes.plot you can set the color of the line. If you want to automate setting the colours, you should use a color cycler. You can browse current styles to get inspired.

Just make use of the science style since it already has the small and big ticks.