Menu

#191 Uneven default extents with image plots

None
closed
nobody
None
5
2016-01-02
2015-07-24
dima
No

Hi. I'm attaching a gnuplot script that plots some inline data 'with image'. Letting gnuplot autoscale, it chooses a very tight bound on the right and a very loose bound on the left resulting in a very lopsided plot.

1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2015-07-24

    gnuplot> set auto noextend
    gnuplot> load 'bad_extents_with_image.gp'

     
  • dima

    dima - 2015-07-24

    OK. That's a good workaround for this particular case. Are you suggesting this as a solution? Thanks for the quick response.

     
  • Ethan Merritt

    Ethan Merritt - 2015-07-24

    From "help noextend":

     By default autoscaling sets the axis range limits to the nearest tic label
     position that includes all the plot data. Keywords `fixmin`, `fixmax`, `fix`
     or `noextend` tell gnuplot to disable extension of the axis range to the next
     tic mark position. In this case the axis range limit exactly matches the
     coordinate of the most extreme data point.  `set autoscale noextend` is a
     synonym for `set autoscale fix`.  Range extension for a single axis can be 
     disabled by appending the `noextend` keyword to the corresponding range
     command, e.g.
          set yrange [0:*] noextend
    
     
  • Hans-Bernhard Broeker

    • status: open --> closed
    • Group: -->
     

Log in to post a comment.

MongoDB Logo MongoDB