I tried so, but it still doesn't show up with an image center at (0,0). The 
same data shows a center at (0,0) in the fft module.

thats how I fetch real data and generate the fft data and display them:


[code]
gwy_app_data_browser_get_current(GWY_APP_DATA_FIELD, &data_field, 0);

data_field_fft_r = gwy_data_field_new_alike(data_field, FALSE);
gwy_data_field_2dfft(data_field,NULL,data_field_fft_r,data_field_fft_i,GWY_WINDOWING_NONE,GWY_TRANSFORM_DIRECTION_FORWARD,GWY_INTERPOLATION_ROUND,TRUE,1)
 ;
gwy_data_field_fft_postprocess(data_field_fft_r,TRUE) ;
gwy_data_field_data_changed(data_field_fft_r);

data[1] = gwy_container_new();
data_view[1] = GWY_DATA_VIEW(gwy_data_view_new(data[1]));
gwy_data_view_set_data_prefix(data_view[1], "/0/data");
gwy_container_set_boolean_by_name(data[1], "/0/data/realsquare", TRUE); 
gwy_container_set_int32_by_name(data[1], "/0/base/range-type", 
GWY_LAYER_BASIC_RANGE_FIXED);
gdouble min, max ;
gwy_data_field_get_min_max (data_field_fft_r,&min,&max);
gwy_container_set_double_by_name(data[1], "/0/base/min", 0.1*max); 
gwy_container_set_double_by_name(data[1], "/0/base/max", 0.2*max);


g_assert( widget = GTK_WIDGET(gtk_builder_get_object(builder, "viewport2")) );
gtk_container_add(GTK_CONTAINER(widget), GTK_WIDGET(data_view[1]));
[/code]





On  0, "David Nečas (Yeti)" <[email protected]> wrote:
> On Mon, Sep 15, 2014 at 03:17:55PM +0200, Mathias Müller wrote:
> > my offsets:
> > 
> > -2,565e+09 and 2,555e+09
> > 
> > They seem to be what you expect them to be.
> > 
> > in the image:       left edge ->  x = 5,58952e+06
> >             right edge -> x = 5,11441e+09 
> 
> OK, if you are already displaying the same field, you just need to call
> gwy_data_field_data_changed() so that views take notice that it has
> changed.
> 
> Regards,
> 
> Yeti

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to