colour-science / colour

Colour Science for Python
https://www.colour-science.org
BSD 3-Clause "New" or "Revised" License
2.08k stars 259 forks source link

[BUG]: "colour.plotting.plot_RGB_scatter" definition does not produce an output. #1007

Closed Wangld5 closed 1 year ago

Wangld5 commented 2 years ago

Description

I run the examples_volume_plot.py but fail when the API plot_RGB_scatter is runed. The screen flickers and then disappears. Can anyone tell me why ?

Code for Reproduction

message_box(
    'Plotting "ACEScg" colourspaces values in the "CIE L*a*b*" colourspace.'
)

RGB = np.random.random((32, 32, 3))

plot_RGB_scatter(
    RGB,
    "ACEScg",
    reference_colourspace="CIE Lab",
    colourspaces=("ACEScg", "ITU-R BT.709"),
    face_colours=((0.25, 0.25, 0.25), None),
    edge_colours=((0.25, 0.25, 0.25), None),
    edge_alpha=(0.1, 0.5),
    face_alpha=(0.1, 0.5),
    grid_face_colours=(0.1, 0.1, 0.1),
    grid_edge_colours=(0.1, 0.1, 0.1),
    grid_edge_alpha=0.5,
    grid_face_alpha=0.1,
)

Exception Message

No response

Environment Information

No response

KelSolaar commented 2 years ago

Hi @Wangld5,

Looks like I missed this one! What is your current MPL backend?

print(matplotlib.get_backend())

KelSolaar commented 1 year ago

Closing this one, feel free to comment again @Wangld5!