Giter Site home page Giter Site logo

Comments (8)

mkborregaard avatar mkborregaard commented on May 22, 2024 1

Hi @ptoche - if you find an issue, it is better to open a new issue than comment on an old closed one, especially if the problem is different. We don't keep track of closed issues, so problems will not be solved. If you just have a question, the gitter channel is a good place to find us.

It does indeed look like the spy recipe is broken, and you should probably open a new issue, preferably with a screenshot detailing your problem.

However, your code would never work. You're calling Gadfly, but gadfly is no longer a Plots backend, and also you cannot call a Plots backend with using. For Plots, the code would look like this:

using Plots; gr() #call the GR backend
SM = eye(5)
SM[end, end] = -1
spy(SM)

from plots.jl.

tbreloff avatar tbreloff commented on May 22, 2024

I wrapped the call to heatmap. Available on master for Gadfly, Immerse, PyPlot, Qwt:

screen shot 2015-10-04 at 9 40 22 pm

from plots.jl.

ptoche avatar ptoche commented on May 22, 2024

Any ideas? Thanks.

workspace()
SM = eye(5)
SM[end, end] = -1
using Gadfly
spy(SM)

WARNING: both Gadfly and Base export "cross"; uses of it in module Main must be qualified

Also tried the following, but no plot was produced.

p = spy(SM)
display(p)

Julia + Plots updated as of a few minutes ago.

from plots.jl.

mkborregaard avatar mkborregaard commented on May 22, 2024

spy isn't implemented as a heatmap anymore, BTW. You can just do a heatmap if that's what you'd like.

from plots.jl.

ptoche avatar ptoche commented on May 22, 2024

@mkborregaard, thanks for your reply. I wasn't sure it was an 'issue' as such or my misunderstanding of the plotting syntax. Apparently both.

I had some Matlab code that used the spy() function, so I googled for Julia+spy and got here pretty quickly, which is why I left a message here. Other trails led me to using-spy-in-julia, but that didn't help much.

Okay, so I'll open an issue. Feel free to close it ;-)

from plots.jl.

alanedelman avatar alanedelman commented on May 22, 2024

so what's the good way to get spy with squares and not invisible dots?
(and matrix coordinates please?)

from plots.jl.

joshday avatar joshday commented on May 22, 2024

Try something like spy(x, marker = (:square, 5)) or heatmap(x, yflip = true)

from plots.jl.

mkborregaard avatar mkborregaard commented on May 22, 2024

Yes the markers are set very small by default in spy, so as not to overlap with the functionality of heatmap

from plots.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.