Open aborzunov opened 5 years ago
Once you access the .o
attribute you need to have a look at the documentation of the respective backend used for plotting. In this case PyPlot which then tells you to look up the matplotlib docs :P.
Interaction can be done like this:
julia> p = plot(-1:0.1:1 ,x->exp(-1/(1-x^2)), xlab="X")
julia> p.series_list[1][:subplot].o.axes.xaxis.get_label()
PyObject Text(0.5, 13.761945538057772, 'X')
# or like this
julia> p.o.axes[1].xaxis.get_label()
PyObject Text(0.5, 13.761945538057772, 'X')
Unfortunately the solution you are describing above makes use of a non standard class for axes/axis: https://matplotlib.org/api/_as_gen/mpl_toolkits.axisartist.axislines.html. Thus the method set_axisline_style
is not available as it does not belong to the standard axis class.
This is kind of duplication of #1348
In matplotlib it is possible to set arrows at the end of axis with smth like
ax.axis["xzero"].set_axisline_style("-|>")
see full exampleI tried
But this leads me to bound method, not to
Obviously, it is because i cant call
SubplotZero
frommpl_toolkits.axisartist.axislines
. Is there a way to execute equivalent of this python code at my figurePlots.Plot{Plots.PyPlotBackend}
?