Hello! Two questions for everyone to consider...
(1) I'm working on a gui with an image being shown next to a plot. The user selects regions of an image using roipolyold, and with each new region, a line is added to the plot next door. I've got the color of each additional line on the plot changing with no problems, but I'm trying to match these colors with a label that is drawn on top of the image. Seems trivial, right? I've pulled the ColorOrder matrix, and have a variable which keeps track of the number of regions selected. When I draw the label, I tell it to use: 'Color',colororder(numplots,:). Not working...each of the labels shows up blue! Any thoughts?
(2) I have an option to switch the view to 3d under certain circumstances. The 3d plot looks best with a jet colormap. However, when I set this colormap for axes2, the colormap for axes1 (the image) is also changed, and I can't figure out why. Any thoughts?
Thanks!
Jeremy
|
|
0
|
|
|
|
Reply
|
Jeremy
|
5/14/2010 8:25:21 PM |
|
Please help!
I've gotten #1 of my original post figured out, but #2 is still driving me insane!
Can anyone help me?
Thanks!
|
|
0
|
|
|
|
Reply
|
Jeremy
|
6/4/2010 4:30:38 PM
|
|
Jeremy wrote:
> (2) I have an option to switch the view to 3d under certain
> circumstances. The 3d plot looks best with a jet colormap. However, when
> I set this colormap for axes2, the colormap for axes1 (the image) is
> also changed, and I can't figure out why. Any thoughts?
colormaps are per-figure, not per-axes
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/colormap.html
Algorithm
Each figure has its own colormap property. colormap is a function that
sets and gets this property.
|
|
0
|
|
|
|
Reply
|
Walter
|
6/4/2010 4:40:02 PM
|
|
Thanks for the info Walter. After a quick search with your info in mind, I came across this link...just in case anyone else has a desire to do utilize multiple colormaps within a single figure.
http://www.mathworks.com/support/tech-notes/1200/1215.shtml
|
|
0
|
|
|
|
Reply
|
Jeremy
|
6/4/2010 4:53:23 PM
|
|
|
3 Replies
218 Views
(page loaded in 0.122 seconds)
Similiar Articles: Save image as tif by using imwrite - comp.soft-sys.matlab ...... the type and color intensities is defined by user. So, very simple: I=mat2gray(dataArray,[clim(1) clim(2 ... clim(1) clim(2)],'Colormap',cmap ... Save image in axes in a GUI ... Matlab GUI bar graph with different colors and stacked - comp.soft ...... GUI in Matlab. Details: 1) All matrices are made up of 0s and 1s 2) First ... on an axes defined from a GUI ... color bar ... Changing 3D plot view angles in a gui axis ... Multiple Contour Plots on 1 Figure - comp.soft-sys.matlab ...... 2007]; time2=[1958:1:2005]; figure plot ... Two graphs in one figure - comp.soft-sys.matlab Design the Multiple Axes GUI. ... lati(1), delta, delta); figure('Color ... Multiple line plots, two y axes - comp.soft-sys.matlab... axes(AX(1)) hold on plot(randn(20,1)*100) axes(AX(2)) hold on plot(rand(20,1),'y ... black, but I can't see what function has set them in color in order to ... how to display an HSV image? - comp.soft-sys.matlab... converted from rgb to HSV through rgb2hsv the color ... Display the original image. figure; subplot(2, 4, 1 ... I want to know how can we display real-time plot(possibly on GUI). Color image file using "imwrite" function - comp.soft-sys.matlab ...subplot(1,2,1); imshow(m8, []); % Maximize ... Save image in axes in a GUI - comp.soft-sys.matlab ... A true color image does not use a colormap; instead, the color values ... Re: How to display axis value on boxplot - comp.soft-sys.sas ...... plot saving*day ... descending order ... video in a GUI - comp.soft-sys.matlab % Also computes the mean gray value of the color ... subPlot(1, 3, 2); axis off; % Turn off axes ... merging existing .fig into the same figure - comp.soft-sys.matlab ...... fig file? i.e. lines, colormap ... do the folllowing in order to change the axes seperatly but it doesn't work fine: Plu = subplot(1,2,1 ... figure P1 = subplot(1,2,1); % Plot ... function for haze removal from images - comp.soft-sys.matlab ...... the following codes: imagesc(hm), colormap(hot); axes('color ... Removing axis values from a GUI axis ... Resolution Satellite Image with ... order of wavelet function dbN in one ... Set and get current colormap - MATLAB - MathWorks - MATLAB and ...... that defines one color. The k th row of the colormap ... interval [0 1]. colormap(ax,...) uses the figure corresponding to axes ax ... pane of the Plot Tools GUI to select one ... Create axes in tiled positions - MATLAB - MathWorks - MATLAB and ...• 3-D Visualization • GUI ... subplot(2,1,1), plot(income) subplot(2,1,2 ... for k = 1:4 y(k,:) = rand(1,15); subplot(2, 2, k) plot(y(k,:)); end hax = axes ... 7/8/2012 10:12:08 AM
|