Git Product home page Git Product logo

Comments (6)

nitrocalcite avatar nitrocalcite commented on July 19, 2024 1

This seems to be an issue specifically with PyCharm's SciView. For future users, you can work around this by going to "File > Settings > Python Scientific" in PyCharm and unchecking "Show plots in tool window". matplotlib plots will then appear natively, and everything seems to work fine.

Incidentally, I can confirm this issue on the latest version of PyCharm without explicitly setting figsize. My basic plot command is

joyplot(data, labels=labels, overlap=10, kind="values", x_range=list(range(n)))

No matter the value of overlap, the figure is generated as if overlap=0. Negative values of overlap still throw errors.

Thanks for the heads-up! I never would have thought to try this.

from joypy.

W-L avatar W-L commented on July 19, 2024 1

There is another possible workaround in case you do not want to deactivate SciView completely. If you are using IPython within PyCharm you can use its magic commands to switch to a different plotting backend. E.g. executing %matplotlib qt in the python console will also prompt plots to appear in a separate tool window (rendered correctly w.r.t this issue). Then simply restarting the console will make it revert to default behaviour of showing plots in SciView. Here's a link to the docs about it: ipython magic commands for matplotlib

from joypy.

leotac avatar leotac commented on July 19, 2024

Hi there, thanks for using joypy!
This is interesting, I'll try to take a look.

from joypy.

leotac avatar leotac commented on July 19, 2024

It looks like I can't reproduce it, using your example I'm able to print even with figsize (8,30) and everything works as expected.
Could you include your environment? (the output of pip list or conda list would be enough)

from joypy.

W-L avatar W-L commented on July 19, 2024

Thanks for taking a look. I just tried it on the command line and in IPython and indeed it works fine. It seems like this is a problem within PyCharm instead, despite using the same environment. Sorry about that..

from joypy.

leotac avatar leotac commented on July 19, 2024

No worries!
Interesting but I wouldn't know how to help you there.

from joypy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.