You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got confused for a bit because the order of the return arguments is not the order of the arguments to plot. I think a plot function even just labeling the axes right would decrease mental effort (yes, I'm lazy).
defmy_plotter(ax, data1, data2, param_dict):
""" A helper function to make a graph Parameters ---------- ax : Axes The axes to draw to data1 : array The x data data2 : array The y data param_dict : dict Dictionary of kwargs to pass to ax.plot Returns ------- out : list list of artists added """out=ax.plot(data1, data2, **param_dict)
returnout
I guess this is close enough to what you are doing in #8425 (comment).
Activity
amueller commentedon Feb 21, 2017
should plot functions return the artist? or the axes? hm...
amueller commentedon Feb 21, 2017
Maybe adding a histogram as in http://scikit-learn.org/stable/auto_examples/calibration/plot_compare_calibration.html would also be nice
amueller commentedon Feb 21, 2017
wow this took me an hour... and I'm not friends with
aspect='equal'any morerishikksh20 commentedon Feb 22, 2017
Like to work on it but bit confused with
plotting module. Is there any separate module for plotting in sklearn or it just about an example like this : http://scikit-learn.org/stable/auto_examples/calibration/plot_calibration_curve.html#sphx-glr-auto-examples-calibration-plot-calibration-curve-pylesteve commentedon Feb 22, 2017
I wasn't aware of this until recently but this is the recommended signature from http://matplotlib.org/faq/usage_faq.html#coding-styles:
I guess this is close enough to what you are doing in #8425 (comment).
amueller commentedon Feb 22, 2017
There is (or will be if none of the PRs have been merge yet)
sklearn.plotrishikksh20 commentedon Feb 22, 2017
@amueller May be it's
will bebecause I haven't foundplotdirectory insidesklearn.amueller commentedon Mar 3, 2017
hm yeah I'm behind on everything :-/
jeff3456 commentedon Mar 22, 2017
Hi I am new to contributing to scikit-learn but I would like to work on this! Is anyone else working on this?
jnothman commentedon Mar 22, 2017
I don't think a PR has been opened, though @rishikksh20 has clearly expressed some interest
rishikksh20 commentedon Mar 23, 2017
Actually I like to work on this but till now sklearn
plotmodule haven't committed I guess.jnothman commentedon Mar 23, 2017