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

Plot title truncated #25

Open
cdhf opened this issue Mar 29, 2021 · 1 comment
Open

Plot title truncated #25

cdhf opened this issue Mar 29, 2021 · 1 comment

Comments

@cdhf
Copy link

cdhf commented Mar 29, 2021

Plotting with julia 1.6.0, Plots 1.11.1 and InspectDR 0.4.0. When setting a plot title, the upper half of it is truncated, both in the interactive window and in exported files.

using Plots, InspectDR
inspectdr()
plot([1,2,3]; title="Test")

results in

screenshot

@ma-laforge
Copy link
Collaborator

Yes. I don't increase area when font size increases. I will have to fix that in Plots.jl but it might take some time.

Workaround for now

You will have to manually fix the font size in InspectDR:

using Plots, InspectDR
inspectdr()

p=plot([1,2,3]; title="Test")
pgui = display(p) #Display plot manually, and get ref to InspectDR object.

#Increase headroom for title:
layout = pgui.subplots[1].src.layout
layout[:valloc_top] *= layout[:font_title]._size/14

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

2 participants