-
Notifications
You must be signed in to change notification settings - Fork 157
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
Added left,right,top_corner_label methods #42
Conversation
…y plot at each corner instead of along each axis.
Thanks for the contribution! I'll run through a few examples and tests, looks good so far. |
The relative positions look good, but in some of my examples the corner labels are outside the standard plotting boundary, e.g. the top label is above the plot title. I suspect this related to the scale parameter, so I think we might need to resize the plotting area appropriately to make sure that the corner labels stay in frame. Do you have an example plot? If not I'll see if I can compute resizing parameters for some of the example plots. I'm also going to add a convenience function to set all the labels simultaneously, something like
I should probably have done this for the axes labels as well. So I'm going to open a new PR on a branch "corner_labels" for your commit and make the additional changes I just described there before merging into master. If you make any more changes please open a new PR on that branch. |
Hi Marc, Glad to help! I love how there is a library for everything. :-) Yes, the labels went outside the active area. I agree it would be better to enlarge the area so they fit inside, but I wasn’t familiar enough with your class structure to do that cleanly. The plot looks like this: I’ll send the source code as a zip in a second e-mail in case you have filters. The convenience functions are a good idea. Zack
|
Second e-mail with zip.
|
Great I'll work on this as soon as I get a chance. |
Terrific! Glad to be able to help. Zack
|
e114387
to
a5da3cc
Compare
Break _redraw_labels():
"left" overwrite regular label dictionary key. |
Yes this PR would break the axis labels. We would need to add a new dictionary for the corner labels. There are also some spacing issues if the corner labels are large (described above). I'm happy to merge a PR that fixes these issues. |
Hi Mark, |
Thanks for letting me know about the paper, I'll add it to the others. The preferred citation string is:
|
Hey, I merged this commit in #83. Thanks for the contribution! |
Great to hear! My pleasure!
When it's up on pypi I'll go grab it and use the new version.
Zack
…On Wed, Apr 18, 2018 at 5:40 PM, Marc ***@***.***> wrote:
Hey, I merged this commit in #83
<#83>. Thanks for the
contribution!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGi-64lAIRWE3L-3WItFhvVN8LxkSMZUks5tp9zqgaJpZM4HxtXL>
.
|
It should be there already, and in conda-forge. |
Looks like this relates to #203. |
Added left,right,top_corner_label methods to allow labeling of ternary plot at each corner instead of along each axis. Folks in geology tend to draw plots this way. Future work might make the positioning of the labels within the canvas.