Skip to content

add: legend modification parameters and output DPI#758

Merged
sharkdp merged 6 commits intosharkdp:masterfrom
Spreadcat:script_updates
Jul 17, 2024
Merged

add: legend modification parameters and output DPI#758
sharkdp merged 6 commits intosharkdp:masterfrom
Spreadcat:script_updates

Conversation

@Spreadcat
Copy link
Copy Markdown
Contributor

@Spreadcat Spreadcat commented Jul 10, 2024

This commit adds a CLI parameter to plot_histogram in order to position the legend of the plot on the diagram.
It also defines the output DPI for the plot to 600 dpi.

dbv and others added 3 commits July 10, 2024 12:48
This commit adds a CLI parameter to plot_histogram in order to position
the legend of the plot on the diagram.
It also defines the output DPI for the plot to 600 dpi.

Plot_progression gets a CLI paramter to add a custom label and to
overwrite the default one.
Copy link
Copy Markdown
Contributor Author

@Spreadcat Spreadcat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleaned up in the changes.

@Spreadcat Spreadcat marked this pull request as ready for review July 10, 2024 18:12
)
parser.add_argument("--bins", help="Number of bins (default: auto)")
parser.add_argument(
"--lloc", help="Location of the legend on plot (default: upper center)",
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"lloc" doesn't seem to be a standard abbreviation, not even in matplotlib, which is full of cryptic terms. Would it hurt to call this --legend-location?

Copy link
Copy Markdown
Contributor Author

@Spreadcat Spreadcat Jul 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem there. It was just lazy-typing to use "lloc" instead of "legend-location". I've change the name of the parameter as you can see. But wait with the merge. I've just quickly wanted to test the script to make sure the changes work and I got a python error. I'll just have a look at this and then put the MR back to active/no-draft when ready.

Done.

Changed variable "lloc" to "legend-location"
@Spreadcat Spreadcat marked this pull request as draft July 17, 2024 09:25
The variable name of "legen-location" (as parameter) becomes "legend_location" (with an underscore), not(!) "legend-location"
@Spreadcat Spreadcat marked this pull request as ready for review July 17, 2024 09:41
@sharkdp sharkdp merged commit ef9e140 into sharkdp:master Jul 17, 2024
@sharkdp
Copy link
Copy Markdown
Owner

sharkdp commented Jul 17, 2024

Thank you very much for your contribution!

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

Successfully merging this pull request may close these issues.

2 participants