-
Hello everyone, I'm trying to increase the figure size of the chromaticity diagram but haven't found much luck. I tried to insert |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Jerry2001, Great questions, there are a few ways to do it! All the Colour plotting definitions starts by creating a figure and an axes with the colour.plotting.artist definition which can either use an existing axes or create a new figure using With that in mind: Defaultscolour.plotting.plot_chromaticity_diagram_CIE1931() Using an Existing Axesfigure = plt.figure(figsize=(19.2, 10.8))
colour.plotting.plot_chromaticity_diagram_CIE1931(axes=figure.gca()) Using a Temporary Overridewith plt.style.context({'figure.figsize': (12.80, 7.20)}):
colour.plotting.plot_chromaticity_diagram_CIE1931() Using a Definition with the Colour Decorator@colour.plotting.override_style(**{'figure.figsize': (8, 6)})
def plot_custom_chromaticity_diagram(**kwargs):
return colour.plotting.plot_chromaticity_diagram_CIE1931(**kwargs)
plot_custom_chromaticity_diagram() This Google Colab Notebook has the above code and defaults plots to show that the state is restored properly after each custom figure size. |
Beta Was this translation helpful? Give feedback.
Hi @Jerry2001,
Great questions, there are a few ways to do it! All the Colour plotting definitions starts by creating a figure and an axes with the colour.plotting.artist definition which can either use an existing axes or create a new figure using
plt.rcParams['figure.figsize']
.With that in mind:
Defaults
Using an Existing Axes
Using a Temporary Override
Using a Definition with the Colour Decorator
@colour.plo…