Skip to content

How to Increase the Figsize of Plot or Diagram? #906

Answered by KelSolaar
Jerry2001 asked this question in Q&A
Discussion options

You must be logged in to vote

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

colour.plotting.plot_chromaticity_diagram_CIE1931()

Using an Existing Axes

figure = plt.figure(figsize=(19.2, 10.8))

colour.plotting.plot_chromaticity_diagram_CIE1931(axes=figure.gca())

Using a Temporary Override

with plt.style.context({'figure.figsize': (12.80, 7.20)}):
    colour.plotting.plot_chromaticity_diagram_CIE1931()

Using a Definition with the Colour Decorator

@colour.plo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jerry2001
Comment options

Answer selected by KelSolaar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants