Skip to content
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

How to rotate the axes #367

Open
HLQzZ opened this issue Apr 14, 2023 · 2 comments
Open

How to rotate the axes #367

HLQzZ opened this issue Apr 14, 2023 · 2 comments
Labels

Comments

@HLQzZ
Copy link

HLQzZ commented Apr 14, 2023

When I set slice_across='y' and plot=True in ts.get_field, what I draw is a picture of the x-z plane, but I want to rotate the coordinate axis to draw a picture of the z-x plane, what should I do?

@ax3l
Copy link
Member

ax3l commented Apr 20, 2023

Instead of plot=True you can take the numpy 2D array that the ts.get_field returns, transpose it as usual with .T and then plug it into matplotlib's plt.imshow().

Data API:

Numpy:

Matplotlib:

@ax3l ax3l added the question label Apr 20, 2023
@HLQzZ
Copy link
Author

HLQzZ commented May 29, 2023

Thank you very much, this problem has been solved. Another question is how to select a specific id format in select like select=[id]? And how to write or such as x=[None,-8e-6]or[8e-6,None], thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants