Menu

no GPVAL_ variable for logscale

Help
2019-03-28
2019-03-28
  • Anglès d'Auriac

    Hello
    is there a way to know inside a script called by the command call if x and y are logscale. I did not find any GPVAL reflecting this state ?
    thank you

     
  • Ethan Merritt

    Ethan Merritt - 2019-03-28

    The full set of GPVAL variables is updated at the end of each "plot" command. If you have not yet issued a plot command, any variables that have to do with the plot are not yet present.
    So

    gnuplot > show var GPVAL_Y
    
           Variables beginning with GPVAL_Y:
    
    gnuplot> plot x
    gnuplot> show var GPVAL_Y
    
            Variables beginning with GPVAL_Y:
            GPVAL_Y_MIN = -10.0
            GPVAL_Y_MAX = 10.0
            GPVAL_Y_LOG = 10.0
            GPVAL_Y2_MIN = -10.0
            GPVAL_Y2_MAX = 10.0
            GPVAL_Y2_LOG = 10.0
    

    But it is true that there is not a value that simply says "logscale is active on this axis".

     

    Last edit: Ethan Merritt 2019-03-28
  • Anglès d'Auriac

    Ok Thank you very much.
    I was comparing the GPVAL variables before and after set logs but without replot-ing.

     

Log in to post a comment.