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

Nothing happens when run from the command line or when included #158

Open
origamist opened this issue Jan 5, 2021 · 1 comment
Open

Comments

@origamist
Copy link

origamist commented Jan 5, 2021

Steps to reproduce:

Copy the code from the example into a file, e.g. plot.jl:

using Gaston, SpecialFunctions

set(term = "qt")

x = y = 0:0.075:10
surf(x, y, (x,y) -> besselj0(y)*x^2, with = "pm3d",
     Axes(view = (45, 45),
          pm3d = "lighting primary 0.5 specular 0.4",
          key = :off)

In a REPL, run it using include("plot.jl"), or run it from the command line using julia plot.jl

Expected:

Something shows up, like when the code is copy-pasted into a REPL.

Actual:

Nothing shows up.

@mbaz
Copy link
Owner

mbaz commented Jan 5, 2021

Works for me.

What happens if you execute the code in the REPL instead of includeing it?

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

No branches or pull requests

2 participants