Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1955 > unrolled thread

How to left-align plots

Started bykrikonmannen@gmail.com
First post2013-08-08 06:08 -0700
Last post2013-08-09 00:05 -0700
Articles 2 — 1 participant

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  How to left-align plots krikonmannen@gmail.com - 2013-08-08 06:08 -0700
    Re: How to left-align plots krikonmannen@gmail.com - 2013-08-09 00:05 -0700

#1955 — How to left-align plots

Fromkrikonmannen@gmail.com
Date2013-08-08 06:08 -0700
SubjectHow to left-align plots
Message-ID<65e6c302-adb7-4136-8ea4-ea93a46a01ec@googlegroups.com>
I have a problem aligning my plot to the left edge of the canvas. 

Look at the following script:
set size ratio -1
set lmargin 0
unset ytics
set term wxtsize 640,480
plot x

This produces a square plot that is horizontally centered on the canvas. However. I would like it to be aligned with the left edge, which I can do if I add
set origin -0.147,0

But if I don't know the size of the plot beforehand, how can I align it to the left?

[toc] | [next] | [standalone]


#1958

Fromkrikonmannen@gmail.com
Date2013-08-09 00:05 -0700
Message-ID<d971ab66-5e8e-4382-89ef-c28eafd61dc7@googlegroups.com>
In reply to#1955
Den torsdagen den 8:e augusti 2013 kl. 15:08:07 UTC+2 skrev krikon...@gmail.com: 
> But if I don't know the size of the plot beforehand, how can I align it to the left?

I found the answer at the gnuplot-tricks blog: http://gnuplot-tricks.blogspot.se/2010/06/broken-axis-once-more.html

Setting 
set lmargin at screen 0
set bmargin at screen 0
puts my plot flush at the lower-left corner of the canvas, as I want.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web