problem with axhline and yscale

`Hey List,

  If you create a horizontal line, and then adjust the size of the

figure, or axis limits the horizontal line does not move with
everything else…

  To reproduce ``        in ipython

-pylab:

    axhline(5) 

  yscale('log') 

`

`ylim(0.5,30)``

      The line stays where it started and is not moved when the plot

is redrawn.

      This was discussed here (back in 2008!!!!!):

`

    Then... when you save the figure, the position of the horizontal

line does NOT match the position you see when the figure is
shown…

    savefig('test.eps')

    Am I missing something?

    Steven
···

http://matplotlib.1069221.n5.nabble.com/transforms-bug-axhline-with-log-y-scale-td35548.html


-- Steven Boada
Doctoral Student
Dept of Physics and Astronomy
Texas A&M University

boada@…3847…

when saving as jpg, I cannot reproduce the problem.
I am using version 1.2

Chao

···

On Wed, Mar 27, 2013 at 10:16 PM, Steven Boada [via matplotlib] <[hidden email]> wrote:

`Hey List,

  If you create a horizontal line, and then adjust the size of the

figure, or axis limits the horizontal line does not move with
everything else…

  To reproduce ``        in ipython

-pylab:

    axhline(5) 


  yscale('log') 


`

`ylim(0.5,30)``




      The line stays where it started and is not moved when the plot

is redrawn.

      This was discussed here (back in 2008!!!!!):

http://matplotlib.1069221.n5.nabble.com/transforms-bug-axhline-with-log-y-scale-td35548.html`

    Then... when you save the figure, the position of the horizontal

line does NOT match the position you see when the figure is
shown…

    savefig('test.eps')



    Am I missing something?



    Steven

-- Steven Boada
Doctoral Student
Dept of Physics and Astronomy
Texas A&M University
[[hidden email]](http://user/SendEmail.jtp?type=node&node=40764&i=0)

Own the Future-Intel® Level Up Game Demo Contest 2013

Rise to greatness in Intel’s independent game demo contest.

Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d


Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


If you reply to this email, your message will be added to the discussion below:

http://matplotlib.1069221.n5.nabble.com/problem-with-axhline-and-yscale-tp40764.html

To start a new topic under matplotlib - users, email [hidden email]

  To unsubscribe from matplotlib, click here.


  [NAML](http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml)


Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16


figure_1.jpg (149K) Download Attachment


View this message in context: Re: problem with axhline and yscale

Sent from the matplotlib - users mailing list archive at Nabble.com.

Yeah,

when I used my officemate's computer (matplotlib 1.1.1) it works fine... I am running...

In [129]: import matplotlib

In [130]: matplotlib.__version__
Out[130]: '1.2.x'

Interesting...

Steven

···

On Wed Mar 27 16:29:53 2013, ChaoYue wrote:

when saving as jpg, I cannot reproduce the problem.
I am using version 1.2

Chao

On Wed, Mar 27, 2013 at 10:16 PM, Steven Boada [via matplotlib] > <[hidden email] </user/SendEmail.jtp?type=node&node=40766&i=0>> wrote:

    Hey List,

    If you create a horizontal line, and then adjust the size of the
    figure, or axis limits the horizontal line does not move with
    everything else...

    To reproduce in ipython -pylab:

    axhline(5)
    yscale('log')
    ylim(0.5,30)

    The line stays where it started and is not moved when the plot is
    redrawn.

    This was discussed here (back in 2008!!!!!):

    http://matplotlib.1069221.n5.nabble.com/transforms-bug-axhline-with-log-y-scale-td35548.html

    Then... when you save the figure, the position of the horizontal
    line does *NOT* match the position you see when the figure is
    shown...

    savefig('test.eps')

    Am I missing something?

    Steven

    --

    Steven Boada

    Doctoral Student
    Dept of Physics and Astronomy
    Texas A&M University
    [hidden email] <http://user/SendEmail.jtp?type=node&node=40764&i=0&gt;

    ------------------------------------------------------------------------------

    Own the Future-Intel&reg; Level Up Game Demo Contest 2013
    Rise to greatness in Intel's independent game demo contest.
    Compete for recognition, cash, and the chance to get your game
    on Steam. $5K grand prize plus 10 genre and skill prizes.
    Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
    _______________________________________________
    Matplotlib-users mailing list
    [hidden email] <http://user/SendEmail.jtp?type=node&node=40764&i=1&gt;
    matplotlib-users List Signup and Options

    ------------------------------------------------------------------------
    If you reply to this email, your message will be added to the
    discussion below:
    http://matplotlib.1069221.n5.nabble.com/problem-with-axhline-and-yscale-tp40764.html

    To start a new topic under matplotlib - users, email [hidden
    email] </user/SendEmail.jtp?type=node&node=40766&i=1>
    To unsubscribe from matplotlib, click here.
    NAML
    <http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html!nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers!nabble%3Aemail.naml-instant_emails!nabble%3Aemail.naml-send_instant_email!nabble%3Aemail.naml&gt;

--
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************

*figure_1.jpg* (149K) Download Attachment
<http://matplotlib.1069221.n5.nabble.com/attachment/40766/0/figure_1.jpg&gt;

------------------------------------------------------------------------
View this message in context: Re: problem with axhline and yscale
<http://matplotlib.1069221.n5.nabble.com/problem-with-axhline-and-yscale-tp40764p40766.html&gt;
Sent from the matplotlib - users mailing list archive
<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html&gt; at
Nabble.com.

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--

Steven Boada

Doctoral Student
Dept of Physics and Astronomy
Texas A&M University
boada@...3847...