On Thu, Aug 02, 2012 at 04:06:32PM +0200, Tobias Cordes wrote:
> I´m characterizing topographies by the toolbox roughness.
> I should divide there the roughness and waviness profile by a
> cut-off factor below 0.01. Where the cut-off is the factor of the
> Nyquist frequency.
> Is there a possibility or can please someone give me a hint where to
> make the adjustment in the code for more digits in the Gui?

I increased the precision to 4 digits.  If you can compile Gwyddion from
source code you can use the attached patch.  Otherwise you can try the
nightly builds, well, you could but they don't build at this moment due
to some transitions in the toolchain.

Regards,

Yeti

Index: modules/tools/roughness.c
===================================================================
--- modules/tools/roughness.c	(revision 13629)
+++ modules/tools/roughness.c	(working copy)
@@ -790,7 +790,7 @@
     GtkDialog *dialog;
     GtkSizeGroup *sizegroup;
     GtkWidget *dialog_vbox, *hbox, *vbox_left, *vbox_right, *table;
-    GtkWidget *scwin, *treeview;
+    GtkWidget *scwin, *treeview, *spin;
     GwyAxis *axis;
     gint row;
 
@@ -847,9 +847,10 @@
 
     /* cut-off */
     tool->cutoff = gtk_adjustment_new(tool->args.cutoff,
-                                      0.0, 0.3, 0.01, 0.05, 0);
-    gwy_table_attach_hscale(table, row, _("C_ut-off:"), NULL,
-                            tool->cutoff, GWY_HSCALE_DEFAULT);
+                                      0.0, 0.3, 0.001, 0.1, 0);
+    spin = gwy_table_attach_hscale(table, row, _("C_ut-off:"), NULL,
+                                   tool->cutoff, GWY_HSCALE_DEFAULT);
+    gtk_spin_button_set_digits(GTK_SPIN_BUTTON(spin), 4);
     g_signal_connect(tool->cutoff, "value-changed",
                      G_CALLBACK(gwy_tool_roughness_cutoff_changed), tool);
     row++;
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gwyddion-users mailing list
Gwyddion-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to