Menu

"set y name" is upside-down

Help
2007-07-26
2013-04-24
  • mike herman

    mike herman - 2007-07-26

    Hello,

    I'm having some trouble with the following code:

      #~~~~~~~~~~~~~~~~~~~~~~~~~~
      # open file and skip header
      #~~~~~~~~~~~~~~~~~~~~~~~~~~
      open "vertical.dat"
      skip 2

      #~~~~~~~~~~~~~~~~~~~~~~
      # set y axis parameters
      #~~~~~~~~~~~~~~~~~~~~~~
      set y name "p [mbar]"
      set y type log
      set y axis 10000 1

      #~~~~~~~~~~~~~~~~~~~~~~
      # set x axis parameters
      #~~~~~~~~~~~~~~~~~~~~~~
      set x axis 0 500
      set x name "$\theta$ [K]"

      #~~~~~~~~~~~~~~
      # read the data
      #~~~~~~~~~~~~~~
      read columns * * y * x

      #~~~~~~~~~~~~~~
      # plot the data
      #~~~~~~~~~~~~~~
      draw curve

      #~~~~~~~~~~~~~~~
      # draw the title
      #~~~~~~~~~~~~~~~
      draw title "$\theta$ vs. Log Pressure"

    The trouble is, the y-axis label is printed from top to bottom, rather than bottom to top, which seems to me to be the more intuitive way to read it.

    Worse, if I add:

      set y axis name horizontal

    The label is printed upside-down.

    Any help with this matter would be greatly appreciated.

    Thank you.

      Mike Herman

     
    • mike herman

      mike herman - 2007-07-26

      I realize now that this problem happens when I use the log option ('set type log'). Otherwise, it prints the y axis label as I intend.

       
      • Dan Kelley

        Dan Kelley - 2007-07-26

        This is a bug, and it would be terrific if you could report it on the bug list.  Unfortunately, I won't be able to look at the bug for two weeks.  It shouldn't be difficult to fix the bug, though.  (It would help if, in your report, you could indicate whether you are able to build gri from the source.  If so, then it will be faster to get it fixed for you.  If you have to wait for a distribution to pick up a new release, it may take longer.)

        I'm sorry for the bug.

        Dan.

         
    • mike herman

      mike herman - 2007-07-26

      Thanks for a quick reply!

      I've posted it as a bug. Yes, I can build it from source, and I'm in no hurry. (I'll just avoid log plots for a while.)

      -Mike

       

Log in to post a comment.

MongoDB Logo MongoDB