-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate and remove pyplot.plotfile? #12180
Comments
I guess this makes sense. The key would be really to provide alternatives. I think people like the simplicity of reading the data and plotting it in one line seen from often used constructs like
I've never seen someone using
or
might be helpful. |
The record array methods in mlab predates the numpy days. Why not just
update plotfile() to use the numpy functions?
…On Thu, Sep 20, 2018 at 8:14 AM Elan Ernest ***@***.***> wrote:
I guess this makes sense. The key would be really to provide alternatives.
I think people like the simplicity of reading the data and plotting it in
one line seen from often used constructs like
pandas.read_csv("fname").plot()
I've never seen someone using pyplot.plotfile though. I don't know where
in the docs that would fit, but showing matplotlib options like
plt.plot(*np.loadtxt("fname", unpack=True, usecols=(1,2)))
or
plt.plot("x", "y", data=pandas.read_csv("fname"))
might be helpful.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12180 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-ET2e4DjXTlHtsTs_BY8eO0vg2LCks5uc4aJgaJpZM4Wx5pR>
.
|
+0.5 on deprecating
The focus of matplotlib is plotting, not parsing data out of a file. The latter is a complicated topic itself and we should not bother too much about it ourselves. That said, I don't mind if someone has strong feelings about |
For now I have just made |
Another alternative to plt.savefig('Images/image.png') Requirements
I hope that helped! |
@rudrathegreat, uhm. I don't follow. |
@rudrathegreat Thanks so much for your interest in Matplotlib. When calibrating the kind of comments to post here, please note whether commenters are on the development team or not, as indicated by a "Member" badge in the heading of their posts. Most folks who are on the development team are aware of something as basic as |
@jklymak and @WeatherGod . Thanks for letting me know. I thought the issue was related to saving the graph. I love Matplotlib! Thanks for letting me know! |
Done in #13740. |
Currently the record array methods in the
mlab
module are deprecated, butpyplot.plotfile()
still requires them and has not been deprecated. Does anyone have any objections to deprecatingpyplot.plotfile()
, and supplying users with alternative options for reading in files (e.g. numpy, pandas)?The text was updated successfully, but these errors were encountered: