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
{{ message }}
Repository navigation
Is there a way to set_zticks in a customized way ? #14980
On Mon, Aug 5, 2019 at 9:21 AM BHUVAN SHUKLA ***@***.***> wrote:
Where is the documentation for that, i'm unable to find it here
<https://matplotlib.org/3.1.1/api/axes_api.html>. Please can you provide
the link ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14980?email_source=notifications&email_token=AACHF6GJVHLVCTC6OTRBYW3QDASONA5CNFSM4IJI4AP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3RZNEA#issuecomment-518231696>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACHF6EVP5732ZZEGYPDXJ3QDASONANCNFSM4IJI4APQ>
.
Presumably the problem is that while .set_zticks and .set_zticklabels are documented for the Axes3D, this is not the case for the x and y variants, because they are inherited from the 2D axes?
The line ax.set_zticks([z[0],z[int(len(z)/2)], z[-1]], [r'$-\pi$', r'$0$', r'$-\pi$' ]) is still having no effect on the output. Note: I have used the statement ax = Axes3D(fig).
Thank you. really sorry for not trying that. And please if it is possible to add examples of the same there in the documentation can it be done or can someone pls update the examples there for z-axis, that would really help people out.
No, I don't think that is implemented at all. The 3d tickmark code is very
different from the 2d version, so they don't share a lot of features
currently.
Activity
timhoffm commentedon Aug 5, 2019
There is no support for 3D plots through the pyplot interface. You need to work with the Axes object.
is equivalent to
and there are
ax.set_zticks()andax.set_zticklabels()methods as well.bhuvanshukla commentedon Aug 5, 2019
Where is the documentation for that, i'm unable to find it here. Please can you provide the link ?
[-]Is there a way to set ztick in a customized way ?[/-][+]Is there a way to set_zticks in a customized way ?[/+]WeatherGod commentedon Aug 5, 2019
ImportanceOfBeingErnest commentedon Aug 5, 2019
Presumably the problem is that while
.set_zticksand.set_zticklabelsare documented for theAxes3D, this is not the case for thexandyvariants, because they are inherited from the 2D axes?bhuvanshukla commentedon Aug 5, 2019
I will try this and update here possibly in around 13 hours from now.
bhuvanshukla commentedon Aug 6, 2019
The line
ax.set_zticks([z[0],z[int(len(z)/2)], z[-1]], [r'$-\pi$', r'$0$', r'$-\pi$' ])is still having no effect on the output. Note: I have used the statementax = Axes3D(fig).timhoffm commentedon Aug 6, 2019
As written here #14980 (comment) you must use
bhuvanshukla commentedon Aug 6, 2019
Thank you. really sorry for not trying that. And please if it is possible to add examples of the same there in the documentation can it be done or can someone pls update the examples there for z-axis, that would really help people out.
Sahuta commentedon Dec 8, 2021
Hi, related to this issue, is there any method like plt.rcParams['xtick.direction"] about z ticks?
WeatherGod commentedon Dec 8, 2021