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

Create an empty plot/figure. #26

Closed
KristofferC opened this issue Sep 21, 2015 · 3 comments
Closed

Create an empty plot/figure. #26

KristofferC opened this issue Sep 21, 2015 · 3 comments

Comments

@KristofferC
Copy link
Contributor

Is there anyway to just get a handle to a plot/figure and then be able to add plots to it with plot! at a later stage.

I tried plot() but it didn't work. Nice package by the way!

@tbreloff
Copy link
Member

At this moment this won't work, but it's a case I want to handle. I'll add
it now, and it should be part of the next release. If you find anything
else please let me know.

On Mon, Sep 21, 2015 at 5:15 AM, Kristoffer Carlsson <
notifications@github.com> wrote:

Is there anyway to just get a handle to a plot/figure and then be able to
add plots to it with plot! at a later stage.

I tried plot() but it didn't work.


Reply to this email directly or view it on GitHub
#26.

@tbreloff
Copy link
Member

This works now on master. There is one caveat... I've noticed that Gadfly doesn't like it if you try to display a plot without any layers (it actually seems to break the internals). You can get around this by adding a semicolor after the call to plot() when inputting through the REPL.

using Plots
plot(bg=:black);
plot!(rand(10), m = :star1)

tmp

@KristofferC
Copy link
Contributor Author

Cool! Thanks!

piever pushed a commit that referenced this issue Aug 29, 2017
To be merged together with PlotUtils #26: accept axis with 4 ticks
t-bltg pushed a commit that referenced this issue Oct 6, 2022
add plot! function definition
t-bltg pushed a commit that referenced this issue Oct 6, 2022
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