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

getp not defined? #560

Closed
mdhe1248 opened this issue Nov 1, 2022 · 1 comment
Closed

getp not defined? #560

mdhe1248 opened this issue Nov 1, 2022 · 1 comment

Comments

@mdhe1248
Copy link

mdhe1248 commented Nov 1, 2022

I was trying to get properties from a plot/pyobject using getp. But this function is not defined.
How can I get properties from a plot object?

I tried,

getp(gca()) #setp(gca()) works.
getproperty(gca(), :xlabel)

Both does not work.

@mdhe1248
Copy link
Author

mdhe1248 commented Nov 1, 2022

Oh, it works with plt.getp:

plt.getp(gca(), "xlabel")

@mdhe1248 mdhe1248 closed this as completed Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant