Rank: 2811 based on 44 downloads (last 30 days) and 1 file submitted
photo

William Murphy

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by William Murphy
Updated   File Tags Downloads
(last 30 days)
Comments Rating
26 Mar 2009 Screenshot Bar3Color Create a 3-dimensional barchart where the height of the bar chooses the color. Author: William Murphy bar3 function, 3d, barchart, bar3color 44 2
  • 5.0
5.0 | 2 ratings
Comments and Ratings by William Murphy View all
Updated File Comments Rating
05 Dec 2014 xml2struct Convert an xml file into a MATLAB structure for easy access to the data. Author: Wouter Falkena

Downloaded this file this evening to process some XML data. worked just fine.

29 Mar 2013 Rotate Tick Label ROTATETICKLABEL rotates tick labels. Author: Andrew Bliss

It worked, but not when I was using ticks which I had set. The plot I was trying has 21 points, but I only wanted to label every third point [125, 250 500 1000 2000 4000 8000]. The labels that I had used earlier were used, but the other ticks were also labeled
125, 2 3 250 5 6 500 8 9 and so on. So a work around will need to be found. Thank you for the posting.

20 Mar 2013 mandelbrot set Plots the mandelbrot set Author: Sai Wing Man

This code ran, but I can't see anything that looks like the Mandelbrot set in the output. It's just a black grid.
Change the isnan() to isinf() and it generates the image.

11 Oct 2011 xyerrorbar Errorbars for both x and y data. Author: Nils Sjöberg

Did exactly what I needed to do for today. Thanks for the function.

Comments and Ratings on William Murphy's Files View all
Updated File Comment by Comments Rating
09 Jul 2013 Bar3Color Create a 3-dimensional barchart where the height of the bar chooses the color. Author: William Murphy Dennis

25 Nov 2012 Bar3Color Create a 3-dimensional barchart where the height of the bar chooses the color. Author: William Murphy Eran Mukamel

17 Apr 2012 Bar3Color Create a 3-dimensional barchart where the height of the bar chooses the color. Author: William Murphy Marty Schlosser

The few lines of code above by 'us' do a good quick job for color varying with bar height, but the entire bar does not color in like the function bar3color will.

Is there a way to create a stacked bar using the same colors used in a bar3color of a given data set? For example, if I use:

hh = bar3color(peaks(3));

I get a 3x3 plot whose bars are colored as a function of their height. I'd like to keep these same colors, for the same data, and stack the rows (or columns) so that the new stacked bar plot shows the total height, but each bar contributing to its total has the color used in the previous bar3color plot.

I want to do this so I can condense a bunch of information that I have on a bar3color plot into two dimensions and keep the coloring scheme so the eye can move easily between the same data on two different plots.

27 Mar 2009 Bar3Color Create a 3-dimensional barchart where the height of the bar chooses the color. Author: William Murphy us

these few lines do the same without need to change BAR3...

% create a stock bar3
bh=bar3(peaks(32));
% the engine
for i=1:length(bh)
set(bh(i),'cdata',...
get(bh(i),'zdata'));
end
% choose your color...
colormap(pink);
colorbar;

us

Contact us