xscale='log' seems to be broken in v.1.4

36 views
Skip to first unread message

Javier Arantegui

unread,
May 9, 2019, 11:26:42 AM5/9/19
to sympy
Hello!

I'm starting to use Sympy (and Python, in fact) and I have just subscribed to the list. Please, forgive me if I say something not particularly smart.

I think that logarithm scales in plots are broken in v. 1.4.

If I try something very simple like this:

plot(x, (x, .001,100), xscale='log')

In version 1.3, the x axis goes from 1e-3 to 1e2 as expected. But, in version 1.4, it goes from 9e-1 to 2e0.

I believe that the problem started here: https://github.com/sympy/sympy/pull/15607

This problem has driven me crazy for one hour until I tried my code in a different computer with an older version of sympy.

Best regards,

Javier

Oscar Gustafsson

unread,
May 9, 2019, 12:22:45 PM5/9/19
to sy...@googlegroups.com
There is a fix in https://github.com/sympy/sympy/pull/16796 which I think should solve it.

Thanks for reporting it. You may report any additional bugs at https://github.com/sympy/sympy/issues (although this clearly also worked well).

BR Oscar

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/fb120a89-0f63-4181-b942-9ec3666ba3c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jogi Miglani

unread,
May 9, 2019, 12:24:42 PM5/9/19
to sympy
Hi Javier,

Sorry for inconvenience caused to you. I got that the limits are not being showed properly after reproducing the error in my laptop. I will solve this bug as soon as possible or open an issue regarding this and get it merged to master.

Cheers
Jogi Miglani

Javier Arantegui

unread,
May 10, 2019, 3:40:18 AM5/10/19
to sy...@googlegroups.com
Dear Oscar,

Thank you for you quick answer. Next time I'll use github to report
new problems.

Javier
>> <https://groups.google.com/d/msgid/sympy/fb120a89-0f63-4181-b942-9ec3666ba3c3%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAFjzj-JBKYVU_NEuxAgUXyGAJtxQ5tbpkFJnzq3LZAVpzTMPYw%40mail.gmail.com.

Javier Arantegui

unread,
May 10, 2019, 3:41:38 AM5/10/19
to sy...@googlegroups.com
Hello,

No problem. Finally I did the plots using numpy and matplotlib. It was
a little bit more of work, but it worked.

Javier
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/7d5f57de-124a-498a-a527-93c6cd4d3e6e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages