Replies: 3 comments 1 reply
-
What is the line that you use to generate the corner plot? The following works as expected for me - can you send a similar minimal script that is not acting as you'd expect?
|
Beta Was this translation helpful? Give feedback.
-
This is my script:
Now the problem is that when I select all the parameters of 'emcee_sol', the axis label customization works, but when I plot the corner with a few of parameters of 'emcee_sol', the axis label will revert to the default, so I would like to know how to customize the axis label while only showing some parameters, and I would also like to ask how to customize the axis label of the spot parameter? |
Beta Was this translation helpful? Give feedback.
-
I will try it as soon as possible, thank you so much.
…---- Replied Message ----
| From | Kyle ***@***.***> |
| Date | 05/09/2023 16:39 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [phoebe-project/phoebe2] How to customize the axis label of MCMC corner plot? (Discussion #726) |
I was able to reproduce and confirm this is a bug (reported as #730 if you want to subscribe to that for updates). In the meantime, you should be able to do it manually after-the-fact by iterating through mplfig.axes and calling set_xlabel or set_ylabel or necessary:
_, mplfig = b.plot(solution='emcee_sol', style='corner', show=True,
***@***.******@***.******@***.***','relteff','radius','long'])
mplfig.axes[0].set_xlabel('override xlabel')
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I try to customize the axis label of MCMC corner plot according to the phoebe tutorial and I was able to customize the axis labels when the corner plot contained the distribution of all the parameters, but when I made the corner plot show only 2 or 3 of all the parameters, the custom labels reverted to their default state. Based on this situation, I would like to ask how to solve it?
Here is a portion of my code (for fillout_factor):
b.get_parameter(qualifier='fillout_factor', component='contact_envelope',context='component')._latexfmt = '\mathrm{{f}}'
Beta Was this translation helpful? Give feedback.
All reactions