Title: Pickled Figure Loses sharedx Properties · Issue #4827 · matplotlib/matplotlib · GitHub
Open Graph Title: Pickled Figure Loses sharedx Properties · Issue #4827 · matplotlib/matplotlib
X Title: Pickled Figure Loses sharedx Properties · Issue #4827 · matplotlib/matplotlib
Description: I am storing pickled Figures for plotting at later time but for some reason the sharedx property keeps getting lost on the 2nd (unpickled) figure. Execute the code below for a quick example. Is there a way to reset the shared x property?...
Open Graph Description: I am storing pickled Figures for plotting at later time but for some reason the sharedx property keeps getting lost on the 2nd (unpickled) figure. Execute the code below for a quick example. Is the...
X Description: I am storing pickled Figures for plotting at later time but for some reason the sharedx property keeps getting lost on the 2nd (unpickled) figure. Execute the code below for a quick example. Is the...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4827
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pickled Figure Loses sharedx Properties","articleBody":"I am storing pickled Figures for plotting at later time but for some reason the sharedx property keeps getting lost on the 2nd (unpickled) figure. Execute the code below for a quick example. Is there a way to reset the shared x property? There is [PR 1312](https://github.com/matplotlib/matplotlib/pull/1312) that talks about a potential unshare_x_axes function but there doesn't really appear to be a setting function either. This may actually be two problems though since the pickle should also maintain the sharedx property.\n\n``` python\n#!/usr/bin/env python\nimport cPickle as pickle\nimport matplotlib.pyplot as plt\nimport numpy as np\n\n# Simple data to display in various forms\nx = np.linspace(0, 2 * np.pi, 400)\ny = np.sin(x ** 2)\n\nf, axarr = plt.subplots(2, sharex=True)\naxarr[0].plot(x, y)\naxarr[0].set_title('Sharing X axis')\naxarr[1].scatter(x, y)\n\npickle.dump(f,open('test.pickle','wb'))\n\nnew_plot = pickle.load(open('test.pickle','rb'))\nnew_plot.canvas.draw()\n\nplt.show()\n```\n","author":{"url":"https://github.com/spaceluigi","@type":"Person","name":"spaceluigi"},"datePublished":"2015-07-30T16:09:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/4827/matplotlib/issues/4827"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cbca4d00-2d88-dfc7-1a50-301550394a26 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCDA:2B78D3:1960048:2237849:6A535DF1 |
| html-safe-nonce | da07248c49eef3f9ce4dfd1ad9e4d083125d30df584245a516bde4f05179289b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0RBOjJCNzhEMzoxOTYwMDQ4OjIyMzc4NDk6NkE1MzVERjEiLCJ2aXNpdG9yX2lkIjoiNzU1ODQyNzc5NDU0NTUzMjQwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 66e2662431e6e4652737987c8cf5288064af2a3f59dc77aa84c6e956bc205907 |
| hovercard-subject-tag | issue:98206916 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/4827/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e210ff14417b7944e4cb65d7606a72332dd1c9ccc03845786d86bcab9826b92/matplotlib/matplotlib/issues/4827 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e210ff14417b7944e4cb65d7606a72332dd1c9ccc03845786d86bcab9826b92/matplotlib/matplotlib/issues/4827 |
| og:image:alt | I am storing pickled Figures for plotting at later time but for some reason the sharedx property keeps getting lost on the 2nd (unpickled) figure. Execute the code below for a quick example. Is the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | spaceluigi |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width