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

[BUG] Removing all margin does not work #4296

Open
MagicMuscleMan opened this issue Jul 30, 2022 · 1 comment
Open

[BUG] Removing all margin does not work #4296

MagicMuscleMan opened this issue Jul 30, 2022 · 1 comment
Labels

Comments

@MagicMuscleMan
Copy link

MagicMuscleMan commented Jul 30, 2022

Details

When trying to annotate a video frame with Plots, it would be really useful to remove all the margin around the axis when saving the file again (to create the modified video).

This does not seem to be possible (or I lack the knowledge -> please show the solution if that should be the case).

Minimal (non-working) example:

using Plots
using Plots.PlotMeasures
using VideoIO

reader = VideoIO.openvideo("file.MOV")
imgColor = read(reader)
plot(imgColor, size = (width, height), showaxis = false, ticks = false,
    left_margin = 0px, top_margin = 0px, right_margin = 0px,
    bottom_margin = 0px, padding = (0.0, 0.0))

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

Versions

Plots.jl version:
Backend version (]st -m <backend(s)>):
Output of versioninfo():

@BioTurboNick
Copy link
Member

BioTurboNick commented Aug 2, 2022

It's because there is a hard-coded baseline, so you have to add a negative margin to actually get rid of the margin.

See #3942

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants