Hello,

same problem here. The scale is not updated after level. It does not
change to [16.909,16.975] but stays [16.88,17.02]. I think, it has to
do with the color axis in the data view that is not updated. At least
the values returned by gwy_color_axis_get_range are the ones of the data
before leveling. Adding serveral gtk.main_iteration_do(False) calls can
be used as a workaround.

Best Regards
Lennart

Settings:
"/module/pixmap/draw_mask" boolean True
"/module/pixmap/draw_selection" boolean False
"/module/pixmap/font_size" double 11.916
"/module/pixmap/grayscale" int32 0
"/module/pixmap/inset_color/alpha" double 1
"/module/pixmap/inset_color/blue" double 1
"/module/pixmap/inset_color/green" double 1
"/module/pixmap/inset_color/red" double 1
"/module/pixmap/inset_pos" int32 5
"/module/pixmap/maptype" int32 4
"/module/pixmap/scale_font" boolean True
"/module/pixmap/xreal" double 512
"/module/pixmap/xyexponent" int32 -6
"/module/pixmap/xymeasureeq" boolean True
"/module/pixmap/xytype" int32 2
"/module/pixmap/xyunit" string "m"
"/module/pixmap/yreal" double 512
"/module/pixmap/zexponent" int32 -9
"/module/pixmap/zoom" double 0.99299999999999999
"/module/pixmap/zreal" double 10000
"/module/pixmap/ztype" int32 1
"/module/pixmap/zunit" string "m"

Sample file: bipm.gwy.

Script:

d=gwy_app_data_browser_get_current(APP_DATA_FIELD)
c=gwy_app_data_browser_get_current(APP_CONTAINER)
gwy_app_run_process_func("level")
d.data_changed()
gwy_file_save(c,"/tmp/test.png",RUN_INTERACTIVE)


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to