Fix "examples_blindness.py" example module.
@@ -25,7 +25,8 @@ ISHIHARA_CBT_3_IMAGE = colour.oetf_reverse(
message_box('Colour Blindness Plots')
message_box('Displaying "Ishihara Colour Blindness Test - Plate 3".')
-plot_image(ISHIHARA_CBT_3_IMAGE, 'Normal Trichromat', label_colour='black')
+plot_image(colour.oetf(ISHIHARA_CBT_3_IMAGE),
+ text_parameters={'text': 'Normal Trichromat', 'color': 'black'})
print('\n')
@@ -33,7 +34,8 @@ message_box('Simulating average "Protanomaly" on '
'"Ishihara Colour Blindness Test - Plate 3" with Machado (2010) '
'model and pre-computed matrix.')
plot_cvd_simulation_Machado2009(
- ISHIHARA_CBT_3_IMAGE, 'Protanomaly', 0.5, label_colour='black')
+ ISHIHARA_CBT_3_IMAGE, 'Protanomaly', 0.5,
+ text_parameters={'text': 'Protanomaly - 50%', 'color': 'black'})
print('\n')
@@ -41,13 +43,13 @@ M_a = colour.anomalous_trichromacy_matrix_Machado2009(
colour.LMS_CMFS.get('Stockman & Sharpe 2 Degree Cone Fundamentals'),
colour.DISPLAYS_RGB_PRIMARIES['Typical CRT Brainard 1997'],
np.array([10, 0, 0]))
-label = 'Average Protanomaly - 10nm'
message_box('Simulating average "Protanomaly" on '
'"Ishihara Colour Blindness Test - Plate 3" with Machado (2010) '
'model using "Stockman & Sharpe 2 Degree Cone Fundamentals" and '
'"Typical CRT Brainard 1997" "RGB" display primaries.')
plot_cvd_simulation_Machado2009(
- ISHIHARA_CBT_3_IMAGE, M_a=M_a, label=label, label_colour='black')
+ ISHIHARA_CBT_3_IMAGE, M_a=M_a,
+ text_parameters={'text': 'Average Protanomaly - 10nm', 'color': 'black'})
print('\n')
@@ -55,10 +57,10 @@ M_a = colour.anomalous_trichromacy_matrix_Machado2009(
colour.LMS_CMFS.get('Stockman & Sharpe 2 Degree Cone Fundamentals'),
colour.DISPLAYS_RGB_PRIMARIES['Typical CRT Brainard 1997'],
np.array([20, 0, 0]))
-label = 'Protanopia - 20nm'
message_box('Simulating "Protanopia" on '
'"Ishihara Colour Blindness Test - Plate 3" with Machado (2010) '
'model using "Stockman & Sharpe 2 Degree Cone Fundamentals" and '
'"Typical CRT Brainard 1997" "RGB" display primaries.')
plot_cvd_simulation_Machado2009(
- ISHIHARA_CBT_3_IMAGE, M_a=M_a, label=label, label_colour='black')
+ ISHIHARA_CBT_3_IMAGE, M_a=M_a,
+ text_parameters={'text': 'Protanopia - 20nm', 'color': 'black'})
