Title: plt.yscale('log') after plt.scatter() behaves unpredictably in this example. · Issue #6915 · matplotlib/matplotlib · GitHub
Open Graph Title: plt.yscale('log') after plt.scatter() behaves unpredictably in this example. · Issue #6915 · matplotlib/matplotlib
X Title: plt.yscale('log') after plt.scatter() behaves unpredictably in this example. · Issue #6915 · matplotlib/matplotlib
Description: As mentioned in this SE question a scatter plot is not autoscaling to include all of the data if plt.yscale('log') is used after plt.scatter(). This happens for the y-axis but not the x-axis in the example, and does not happen for plt.pl...
Open Graph Description: As mentioned in this SE question a scatter plot is not autoscaling to include all of the data if plt.yscale('log') is used after plt.scatter(). This happens for the y-axis but not the x-axis in the...
X Description: As mentioned in this SE question a scatter plot is not autoscaling to include all of the data if plt.yscale('log') is used after plt.scatter(). This happens for the y-axis but not the x-axi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6915
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"plt.yscale('log') after plt.scatter() behaves unpredictably in this example.","articleBody":"As mentioned [in this SE question](http://stackoverflow.com/q/38800189/3904031) a scatter plot is not autoscaling to include all of the data if `plt.yscale('log')` is used after `plt.scatter()`. This happens for the y-axis but not the x-axis in the example, and does not happen for `plt.plot()`.\n\nIn an [earlier answer](http://stackoverflow.com/a/18774741/3904031) by a developer, `ax.set_yscale('log')` is shown following `ax.scatter()`, so I am wondering if this may be a bug.\n\nUsing matplotlib version 1.5.1 and python 2.7.11\n\n\n\n```\nimport matplotlib.pyplot as plt\n\nX = [0.997, 2.643, 0.354, 0.075, 1.0, 0.03, 2.39, 0.364, 0.221, 0.437]\nY = [15.487507, 2.320735, 0.085742, 0.303032, 1.0, 0.025435, 4.436435,\n 0.025435, 0.000503, 2.320735]\n\nplt.figure()\n\nplt.subplot(2,2,1)\nplt.scatter(X, Y)\nplt.xscale('log')\nplt.yscale('log')\nplt.title('scatter - scale last') \n\nplt.subplot(2,2,2)\nplt.plot(X, Y)\nplt.xscale('log')\nplt.yscale('log')\nplt.title('plot - scale last') \n\nplt.subplot(2,2,3)\nplt.xscale('log')\nplt.yscale('log')\nplt.scatter(X, Y)\nplt.title('scatter - scale first') \n\nplt.subplot(2,2,4)\nplt.xscale('log')\nplt.yscale('log')\nplt.plot(X, Y)\nplt.title('plot - scale first') \n\nplt.show()\n```\n","author":{"url":"https://github.com/davidmikolas","@type":"Person","name":"davidmikolas"},"datePublished":"2016-08-07T03:58:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":32},"url":"https://github.com/6915/matplotlib/issues/6915"}
| 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:32169687-2227-4f5e-b2e2-1c5daade2f31 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4FE:1BE578:C7E645:10BCD3A:6A52C4AD |
| html-safe-nonce | 9cdb2cb958e81758704364d88edb757313fc971d2cd61980449bb344980e79af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEZFOjFCRTU3ODpDN0U2NDU6MTBCQ0QzQTo2QTUyQzRBRCIsInZpc2l0b3JfaWQiOiI0MzQ5MjMyOTY4MzIzMjIwNjUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f31d617c6c84e985482820c89fc5132f44b92f2909ad59484fdb19efe5fbc866 |
| hovercard-subject-tag | issue:169778592 |
| 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/6915/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ee0a03a474ac9e7460d1362b044f5e5553fea8415e84e6de4a35ce8ad1fff1a/matplotlib/matplotlib/issues/6915 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ee0a03a474ac9e7460d1362b044f5e5553fea8415e84e6de4a35ce8ad1fff1a/matplotlib/matplotlib/issues/6915 |
| og:image:alt | As mentioned in this SE question a scatter plot is not autoscaling to include all of the data if plt.yscale('log') is used after plt.scatter(). This happens for the y-axis but not the x-axis in the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davidmikolas |
| 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