|
From: Mathias B. <mat...@gm...> - 2014-08-08 09:23:23
|
Thanks a lot ! It's working now It seems that the "pixels" keyword made my day ! Without it, it didn't work in my bash script Thanks again Mathias 2014-08-07 8:58 GMT+02:00 sfeam <sf...@us...>: > On Wednesday, August 06, 2014 01:50:53 PM Mathias Brulatout wrote: > > Hi Gnuploters, > > > > I'm utrying to plot data using a matrix with an svg output. > > > > Here is my data file : > > > > ,30 ,60 ,90 ,120 > > 100, 3.2, 1.81, 1.59, 1.48 > > 200, 4.57, 2.93, 2.5, 2.03 > > 300, 6.26, 4.19, 3.38, 2.96 > > 400, 8.46, 5.67, 4.96, 3.68 > > > > Actually, it's 10x10 CSV matrix with row and column labels, but I > truncated > > it to get a more readable 4x4 CSV matrix (still with row/column headers) > > > > And now my (minimal) script : > > > > set terminal svg > > set output 'file.svg' > > set datafile separator "," > > plot 'file' matrix rowheaders columnheaders using 1:2:3 notitle with > image > > set datafile separator > > > > Gnuplot doesn't complain at all, but I do ! > > x and y scale is OK, as well as the "color scale" from min to max. > > However nothing is plot between my 2 axis ... It's not the first time I > use > > a svg terminal (although it's my first time with a matrix image). > > > > It seems that row/columnheaders is a quite new feature ... Is this not a > > svg terminal feature yet? (is it output terminal-dependant?). > > Yes. It's a new feature that will be in -rc2 but was not ready in time for > rc1. > > Your test case works fine here with svg output. > I used: > > $DATA << EOD > ,30 ,60 ,90 ,120 > 100, 3.2, 1.81, 1.59, 1.48 > 200, 4.57, 2.93, 2.5, 2.03 > 300, 6.26, 4.19, 3.38, 2.96 > 400, 8.46, 5.67, 4.96, 3.68 > EOD > > set datafile separator comma > set term svg standalone > set output 'plot.svg' > plot $DATA matrix rowheaders columnheaders using 1:2:3 notitle with image > unset output > > Note that the display of image data in svg depends on how the > browser/viewer > chooses to render it. You might try adding the "pixels" keyword at the end > of the command to force it render each element independently of its > neighbors. > > Ethan > > > > > > > > > > > > PS : It works perfectly with a png terminal. > > > ---------------------------------------------------------------------------- > > -- Infragistics Professional > > Build stunning WinForms apps today! > > Reboot your WinForms applications with our WinForms controls. > > Build a bridge from your legacy apps to the future. > > > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > Membership management via: > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > |