Menu

#207 Draw zeroaxis at specified positions

open
nobody
None
5
2007-04-25
2005-10-10
No

This patch enables the user to move the zeroaxes away
from zero. To plot the xzeroaxis at y = 3, use
set xzeroaxis at 3
To plot in the center of the graph, use
set xzeroaxis at graph 0.5
In 3D, two numbers have to be given:
set zzeroaxis at 3,4
plots the z zeroaxis at x=3, y=4.

This is useful to plot axes with ranges that do not
include zero or for log scaled axes.

This patch still is a little bit experimental. Please
give feedback. I do not know what has to be done with
boxes when the zeroaxis is not at zero. Do they still
have to start at zero or at the zeroaxis?

Discussion

  • Ethan Merritt

    Ethan Merritt - 2005-10-10

    Logged In: YES
    user_id=235620

    What is the intended use for this?

    Anywhay, if we were to add this, I think it needs a
    different name. How can a "zero" axis be somewhere other
    than zero?

     
  • Harald Harders

    Harald Harders - 2005-10-10

    Examples

     
  • Harald Harders

    Harald Harders - 2005-10-10

    Logged In: YES
    user_id=207272

    This is useful for plots in an axis-style which do not
    contain a border. With the current gnuplot version, you have
    a problem when the ranges to not contain zero or if you have
    logarithmic axes (which never contain zero). At the moment,
    you have to fake axes using 'set arrow' and tics do only
    work if the axis is at the position graph 0 or graph 1. See
    the examples.

    In my work, I often have had the problem with the axis,
    since I am using the DIN style for my plots (which uses axes
    instead of a border). Thus, this patch is necessary to
    enable the plot layouts, we have spoken about, in a
    satisfacory manner.

    I agree that 'zeroaxis' isn't a good name. What about
    '{x|y|z|...}axis'?

     
  • Harald Harders

    Harald Harders - 2005-11-12

    Logged In: YES
    user_id=207272

    This new version renames the `[xyz]{2}zeroaxis` commands to
    `[xyz]{2}axis`.
    The old names are maintained, containing the whole
    functionality, including the optin 'at'. They print a
    warning message.

    For me, this patch really is useful since I am always
    printing the axis instead of the border. For logscale plots
    and other ranges that do not include 0, I have to place the
    axes using 'set arrow' which is a bad hack. This patch
    introduces a clean possibility to place the axis lines.

    In addition, the hack using the arrow does not allow to put
    the tics at the faked axis.

     
  • Ethan Merritt

    Ethan Merritt - 2006-06-14
    • priority: 5 --> 2
     
  • Ethan Merritt

    Ethan Merritt - 2006-06-14

    Logged In: YES
    user_id=235620

    In preparation for a code freeze and the run-up to a release of
    version 4.2, existing bugs and patchsets are being prioritized.

    This patchset is not on my (sfeam) list for inclusion in 4.2 and
    is therefore being marked as priority 2.

    Note that this does not mean it is a bad patch, or that it won't
    be incorporated into cvs after 4.2 is released. We can
    re-evaluate priorities after 4.2 is out.

    If you want to argue for immediate reconsideration - go right
    ahead; but do so quickly!

    Ethan Merritt

     
  • Harald Harders

    Harald Harders - 2007-04-25

    Logged In: YES
    user_id=207272
    Originator: YES

    This is an update of the code for the current cvs version. I still find it very useful and would like to use it frequently, especially for log plots with the tics at the axis.

    File Added: axis-20070426-0017.diff

     
  • Harald Harders

    Harald Harders - 2007-04-25
    • priority: 2 --> 5
     
  • Harald Harders

    Harald Harders - 2008-02-10

    Logged In: YES
    user_id=207272
    Originator: YES

    Update for the current CVS version and bugfix in 'unset axis'.

    I still find this patch very useful, especially for log-scale axes if you want axis lables at an axis. If there are reasons for not putting this into CVS please report why.
    File Added: axis-20080210-1852.diff

     
  • Hauke Wittich

    Hauke Wittich - 2010-05-12

    This would be a very helpful feature. Very often I have this problem and always I have to do this workaround. Please add this patch soon.

     
  • Harald Harders

    Harald Harders - 2010-05-13

    Patch against CVS version as of 2010-05-12

     
  • Harald Harders

    Harald Harders - 2010-05-13

    Update for current CVS version.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.