Skip to content

Conversation

@andrewfowlie
Copy link
Contributor

this is relatively big PR

  • i made the code interact with matplotlib in an object oriented way, i.e., you can pass in an axes instance and have the code add e.g., the 2D posterior to it. this is much more flexible because users can make their own axes in whatever layout etc that they want
  • the styling is predominantly set by style sheets as follows
from gambit_plotting_tools.gambit_colormaps import register_cmaps

register_cmaps()
plt.style.use(['gambit_plotting_tools.gambit', 'gambit_plotting_tools.dark'])

The register_cmaps is necessary for matplotlib to pickup gambit's defined colormap. there is a dark and a light style

from gambit_plotting_tools.gambit_colormaps import register_cmaps

register_cmaps()
plt.style.use(['gambit_plotting_tools.gambit', 'gambit_plotting_tools.light'])

The dark syle is the usual gambit one for 2D plots, the light one is the usual gambit style for 1D plots + a light colormap. You can use them on 1D or 2D plots though.

@andrewfowlie
Copy link
Contributor Author

Hi Anders, did you check this out?

@anderkve
Copy link
Contributor

Ah, thanks for the reminder, @andrewfowlie! I had forgotten about this one. Will look at it once I'm done with a current project of adding some new plot modes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants