Giter Site home page Giter Site logo

mpldock's People

Contributors

peper0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mpldock's Issues

Figure size when saving

Thanks for this project! Consider the following example, wherein I create three figures and plot something in each. I like to keep an ipython session open where I may run and re-run the script multiple times. Upon re-run, I want my mpldock window to remain in the same arrangement and just have each figure update.

f = plt.figure(1, clear=True)
ax = f.add_subplot()
ax.plot(rand(10))

f = plt.figure(2, clear=True)
ax2 = f.add_subplot()
ax2.plot(rand(10))

f = plt.figure(3, clear=True)
ax3 = f.add_subplot()
ax3.plot(rand(10))

ax2.figure.savefig("test123.pdf")

My matplotlibrc contains figure.figsize : 6, 6, which I really only care about at save time (since my plots generally end up in TeX manuscripts). Upon first run, the figures are created and the mpldock window shows the figures (though not in the specified dimensions) and the resulting test123.pdf is indeed square. The problem: when I re-run, the file test123.pdf assumes the dimensions of the second figure as it appears in mpldock. I don't know if this is an issue with mpldock or if there is a better way to achieve my desired result.

Background: I write and tweak scripts often while performing some kind of analysis. In my mind, mpldock serves as a sort of dashboard where I can rearrange and resize how I like in order to see all of my figures (and even persist the arrangement, which is very nice). However, when it comes time to save, I need the figures to be in their proper dimensions. When using the qt5agg on macos I can resize the figure window however I want and re-run the script without affecting the dimensions of the saved figure.

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.