-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Feature Request: spy() function #40
Comments
Any ideas? Thanks.
Also tried the following, but no plot was produced.
Julia + Plots updated as of a few minutes ago. |
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 Plots; gr() #call the GR backend
SM = eye(5)
SM[end, end] = -1
spy(SM) |
|
@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 Okay, so I'll open an issue. Feel free to close it ;-) |
so what's the good way to get spy with squares and not invisible dots? |
Try something like |
Yes the markers are set very small by default in spy, so as not to overlap with the functionality of heatmap |
Hi Tom. Matlab has a
spy()
function for viewing the sparsity pattern of a matrix. I like the way Gadfly implementsspy()
, which is to make a heatmap from a matrix (JuliaLang/julia#2121). I didn't see a way to do this through the Plots.jl api.The text was updated successfully, but these errors were encountered: