|
From: Thomas S. <t.s...@fz...> - 2010-07-20 17:32:30
|
use the screen coordinates when defining objects: set term gif size 640,480 set obj 1 rect from screen 100./640.,20./480. to screen 200./640.,30./480. fc palette cb 3 set out 'plot.gif' plot sin(x) set out Fayer Michael wrote: > > Expect for canvas size, gnuplot uses relative unit to plot. Now I want > to draw directly in unit of pixels. For example, I want something like: > set obj rect from 100,20 to 200,30 fc palette cb 3 > > where 100,20 and 200,30 are in pixel. > > I set xrange/yrange to something like 1:640 and 1:480, and set all > margins to 0. However, the results were still not exactly what I want. > And it's a dirty hack. Anyone knows a clean one? > > I noticed low-level Perl package Term::Gnuplot, but it's not convenient > for high-level plotting. > > Fayer > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/How-to-plot-directly-in-unit-of-pixels-by-gnuplot--tp29213664p29216132.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |