Comments (8)
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.
I wrapped the call to heatmap. Available on master for Gadfly, Immerse, PyPlot, Qwt:
from plots.jl.
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.
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.
@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.
so what's the good way to get spy with squares and not invisible dots?
(and matrix coordinates please?)
from plots.jl.
Try something like spy(x, marker = (:square, 5))
or heatmap(x, yflip = true)
from plots.jl.
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)
- [BUG] Arrow does not work with pgfplotsx
- Warning when loading Plotly backend
- [BUG] Huge vertical margin of `plot_title` HOT 8
- [FR] Improve the `xticks!` dosctring
- [FR] savefig("foo.svgz") (gzip-compressed SVG) HOT 1
- [BUG] grouping Measurement data leads to wrong errorbars in plot
- [BUG] PGFPlotsX doesn't colour certain markers in a scatter plot.
- Support for PlotlyKaleido@2
- Feature request: add keyword to make Julia wait until plot window closes
- [BUG] Julia 1.10.2 fails when trying to add or use Plots issuing Pkg.add("Plots") or using Plots HOT 11
- [FR] Flip yaxis of heatmap
- [FR] Better legends for :vline and :hline HOT 1
- [BUG] Plots.jl dependencies are broken, cannot install the package HOT 3
- [FR] Reproducible output with PGFPlotsX backend
- [BUG] Markers not in legend when plotting step functions
- [BUG] Incorrect display of negative signs in tick labels with non-default fonts in PDF outputs
- [BUG] link=:y doesn't work across nested subplots with layout HOT 2
- [BUG] Precompile fails in Julia 1.10.3: Buffer overflow
- Failed to precompile Plots on Julia v1.10.3
- [FR] Avoid gratuitous use of transparency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plots.jl.