Skip to content

Pluto & PyPlot.jl imshow #530

Open
Open

Description

@roflmaostc

Hey,

I've seen that PyPlot.jl in general works, but in Pluto nothing really happens for:

begin
	using PyPlot
	PyPlot.imshow(randn((3,3)))
end

Only some output:

PyObject <matplotlib.image.AxesImage object at 0x7f08ddf99700>

In the REPL that pops-up an external, interactive viewer. In Jupyter it is within the browser, but I would be happy to have it externally.

Thanks a lot,

Felix

Setup:

  • PyPlot v2.9.0
  • Pluto v0.15.1

Ref: Pluto issue

Activity

  1. diegozea commented on Sep 10, 2021

    @diegozea

    Hi!

    It would be great to have plot and imshow working out of the box in Pluto!

    For the moment, I have found the following workaround using gcf to get a Figure object:

    import PyPlot
    
    begin
    	PyPlot.figure()
    	PyPlot.imshow(randn((3,3)))
    	PyPlot.gcf()
    end

    Screenshot from 2021-09-10 16-00-29

    Best!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions