[matplotlib-devel] Fwd: Axis default limits with a Circle patch
Hi all, I think i might have a better shot at having my query answered
here, so forward my email to user-list here.
Thanks for any insights!
Query:
Consider the following code:
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.gca()
circle = plt.Circle((0, 0), radius = 0.5)
ax.add_patch(circle)
print(plt.axis())
plt.show()
The default axis limits are printed as:
(0.0, 1.0, 0.0, 1.0)
I am not sure why this is the case. So, I would like to learn why?
PS: I know I can just do plt.axis('scaled') so that I can see the entire circle.
I also asked this on SO, so feel free to answer there as well:
http://stackoverflow.com/questions/26824696/matplotlib-axis-default-limits-with-a-circle-patch
Thanks,
Amit.
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Patch review: Autoscaling on add_patch()
Hi all, I submitted a PR yesterday: https://github.com/matplotlib/matplotlib/pull/3936 to add autoscale_view() in the add_patch() method. This aims to fix: https://github.com/amitsaha/matplotlib/tree/issue3934 I am very much a matplotlib user, so if the PR doesn't look right, I am willing to work on it so as to fix the issue with help. Thanks, Amit. -- http://echorand.me -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] FuncAnimation and persistence
Hi all, I realize that once I create a FuncAnimation object, I must assign it to a label to make it persist [1]. Is this going to remain the case in the foreseeable future? Is there a better way of doing this now? Thanks, Amit. [1] https://github.com/matplotlib/matplotlib/issues/1656 -- http://echorand.me -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] FuncAnimation and persistence
Hi all, I realize that once I create a FuncAnimation object, I must assign it to a label to make it persist [1]. Is this going to remain the case in the foreseeable future? Is there a better way of doing this now? Thanks, Amit. [1] https://github.com/matplotlib/matplotlib/issues/1656 -- http://echorand.me -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] FuncAnimation and persistence
On Wed, Dec 31, 2014 at 4:53 AM, Benjamin Root wrote: > There is no better way to do this at the moment. There have been talk of > integrating the animation interface into Figure objects so that creating an > animation would be similar to creating any other type of plot, with > references to the animation object stored in the figure like any other > Artist. > > The basic rule of thumb is, if you are using a constructor, then assign the > constructed object somewhere! Thanks a lot Benjamin! Very helpful indeed. > > I hope that clears it up! > Ben Root > > > On Sun, Dec 28, 2014 at 7:25 AM, Amit Saha wrote: >> >> Hi all, >> >> I realize that once I create a FuncAnimation object, I must assign it >> to a label to make it persist [1]. Is this going to remain the case in >> the foreseeable future? Is there a better way of doing this now? >> >> Thanks, >> Amit. >> >> >> [1] https://github.com/matplotlib/matplotlib/issues/1656 >> >> -- >> http://echorand.me >> >> >> -- >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> ___ >> Matplotlib-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > -- http://echorand.me -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
