@@ -164,6 +164,12 @@ def prepare_data(d, init):
164
164
mappabledata .append ((
165
165
'Interpolation' ,
166
166
[mappable .get_interpolation (), * interpolations ]))
167
+
168
+ interpolation_stages = ['data' , 'rgba' ]
169
+ mappabledata .append ((
170
+ 'Interpolation stage' ,
171
+ [mappable .get_interpolation_stage (), * interpolation_stages ]))
172
+
167
173
mappables .append ([mappabledata , label , "" ])
168
174
# Is there a scalarmappable displayed?
169
175
has_sm = bool (mappables )
@@ -227,9 +233,11 @@ def apply_callback(data):
227
233
# Set ScalarMappables.
228
234
for index , mappable_settings in enumerate (mappables ):
229
235
mappable = labeled_mappables [index ][1 ]
230
- if len (mappable_settings ) == 5 :
231
- label , cmap , low , high , interpolation = mappable_settings
236
+ if len (mappable_settings ) == 6 :
237
+ label , cmap , low , high , interpolation , interpolation_stage = \
238
+ mappable_settings
232
239
mappable .set_interpolation (interpolation )
240
+ mappable .set_interpolation_stage (interpolation_stage )
233
241
elif len (mappable_settings ) == 4 :
234
242
label , cmap , low , high = mappable_settings
235
243
mappable .set_label (label )
0 commit comments