Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><s>This would be a great feature, but AFAIK it isn't implemented in Matplotlib and likely would be difficult to implement yourself due to the way figures are stored.</s></p> <p>I'd suggest either (a) separate processing the data from generating the figure (which saves data with a unique name) and write a figure generating script (loading a specified file of the saved data) and editing as you see fit or (b) save as PDF/<a href="http://en.wikipedia.org/wiki/Scalable_Vector_Graphics" rel="nofollow noreferrer">SVG</a>/<a href="http://en.wikipedia.org/wiki/PostScript" rel="nofollow noreferrer">PostScript</a> format and edit in some fancy figure editor like <a href="https://en.wikipedia.org/wiki/Adobe_Illustrator" rel="nofollow noreferrer">Adobe Illustrator</a> (or <a href="http://en.wikipedia.org/wiki/Inkscape" rel="nofollow noreferrer">Inkscape</a>).</p> <p><strong>EDIT post Fall 2012</strong>: As other's pointed out below (though mentioning here as this is the accepted answer), Matplotlib since version 1.2 has had allowed you to pickle figures. As the <a href="https://matplotlib.org/users/prev_whats_new/whats_new_1.2.html#figures-are-picklable" rel="nofollow noreferrer">release notes state</a>, it is an experimental feature and does not support saving a figure in one matplotlib version and opening in another. It's also generally insecure to restore a pickle from an untrusted source. </p> <p>For sharing/later editing plots (that require significant data processing first and may need to be tweaked months later say during peer review for a scientific publication), I still recommend the workflow of (1) have a data processing script that before generating a plot saves the processed data (that goes into your plot) into a file, and (2) have a separate plot generation script (that you adjust as necessary) to recreate the plot. This way for each plot you can quickly run a script and re-generate it (and quickly copy over your plot settings with new data). That said, pickling a figure could be convenient for short term/interactive/exploratory data analysis.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload