Winston colormap

201 views
Skip to first unread message

Hisham Assi

unread,
Mar 25, 2014, 12:48:53 PM3/25/14
to julia...@googlegroups.com
For the command colormap (name::String[n=256]) , what values are available for name::string other than "jet" ?
It would be for helpful to have density plot command like the one in Mathematica. It would be something like the density(m x n Array{Float64,2}, n-element Array{Float64,1}, m-element Array{Float64,1}) with a colormap option. This would somehow cover the shortage of contour plot and 3D-surface plot for plotting physical fields( temperature, pressure, ...)  over two dimensional space which is very common in physics and engineering publications.
Thank you all JULIA people.  
  

  

Alex

unread,
Mar 25, 2014, 1:56:28 PM3/25/14
to julia...@googlegroups.com
Hi Hisham,

There is imagesc in Winston, which is similar to ListDensityPlot in Mathematica and uses the current colormap (set by Winston.colormap). AFAIK "jet" is the only colormap defined in Winston. However, you can use the colormaps provided by Color.jl (see here fore a list) or construct your own maps as Vectors of colors and set them with Winston.colormap.

Best,

Alex.

Hisham Assi

unread,
Mar 30, 2014, 11:44:11 AM3/30/14
to julia...@googlegroups.com
Thank You Alex, 
Can we add a colorbar to imagesc ?
I was not able to add xrange and yrange to the imagesc, Is there a away to control the  imagesc  attributes similar to any other FramedPlot? 
Reply all
Reply to author
Forward
0 new messages