Re: advanced customization of plots and figures



"Adam " <not.my.email@xxxxxxxxxxxxx> wrote in message
<fctpm8$phf$1@xxxxxxxxxxxxxxxxxx>...
"Tom? " <tmezger_NOSPAM@xxxxxx> wrote in message
<fctnrs$ri1$1@xxxxxxxxxxxxxxxxxx>...
"Adam " <not.my.email@xxxxxxxxxxxxx> wrote in message
<fctm54$2cb$1@xxxxxxxxxxxxxxxxxx>...
"Tom? " <tmezger_NOSPAM@xxxxxx> wrote in message
<fctdea$lco$1@xxxxxxxxxxxxxxxxxx>...
Hi community,

i want to format a figure to look just like this
example:




http://picasaweb.google.com/babouyukas/ExampleGrafix/photo#5112210045444665938

very important for me is the format of the "Box". in my
plotting script i use the command "box on". this makes
a box
with the same width all around the graphic. i need the
axes
to have different width.

the second problem is the grid and specially the minor
tics
(see the example, the gray lines only in the x-axis).
is it
possible to format them in a different way than the main
tics?


thank you very much!


tom


Try:
hAxes = axes; % create new axes to examine
get(hAxes)

Similarly:



http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/axes_props.html&http://www.google.com/search?q=matlab+axes&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enUS231US231

This gives you a list of properties. These can be set by:
set(hAxes, 'box', 'on') % same as "box on"

Properties you're interested in (at least):
Box
MinorGridLineStyle
XLim
YLim



Hi, thank you for your reply.

i used


set(gca,'XMinorGrid','on','MinorGridLineStyle',':','GridLineStyle','-')
to get a difference between the minor and normal grid line.
this is fine.

now, much important is to set the width of the x and y axis
(see the example). I need this to implement the excel layout
for plots in matlab.
The link I included lists all the properties with
descriptions. XLim, YLim (and you'll probably want
XTickLabel too)


is there a posiblity to change the color of the minor grid
line separately from the color of the grid line?
hmm, I thought you could set color with the minortickstyle,
but guess not. If you don't need to be able to zoom, etc
you could simply plot lines to represent the minor grid
lines then color appropriatley.

E.G.
plot([0 1], [0 1], '.k') % create blank work area for this
example
hold on
%draw lines
yo = plot([0.05 0.15 0.25; 0.05 0.15 0.25], [0 1], ':')
hold off
%set line color
set(yo, 'Color', [0.5 0.5 0.5])

~Adam



thank you Adam for your reply. i think this is not very
practicable. it is better to use excel, i have written a
macro that format the plot. i really whant to stop using
excel, because it is just bad and the plots are not good
enough (example, there is no "steps" function to plot)

and thankx for the link, but there i can't find any
information i need. if you see the example i send, only the
parts of the x and y axis of the box are bold. the other
part of the box are normal. this is what i need.


thank you!

tom

.



Relevant Pages

  • Re: Excel 2003- Charts- date and time format on x-axis of XY chart
    ... changing this format so that excel reads it as date and time (ie: ... "David Biddulph" wrote: ... I am trying to plot an XY graph with x-axis data in date and time ... Excel keeps counting the x-axis data as "data labels". ...
    (microsoft.public.excel.charting)
  • RE: How do I adjust a curve ?
    ... I do the change in the format on the displayed equation and you have reason. ... polynomial coefficients are from LINESTin Excel versions prior to 2003. ... The plot of the experimental data is like the nromal distribution, ...
    (microsoft.public.excel.charting)
  • Re: Ploting dates against a calendar and not as a simple events
    ... but still in date format. ... Jon Peltier, Microsoft Excel MVP ... >>I need to plot the values with the dates on the x axis. ... This distorts the graph. ...
    (microsoft.public.excel.charting)
  • Re: add gridlines automatically to an openend xxx.html
    ... I'm looking for a way for Excel (or some other ... >>I have an html file that displays data in a table format. ... I would like to automatically apply grid lines to this data as ... The html file name will vary (generated by Webview ...
    (microsoft.public.excel)
  • add gridlines automatically to an openend xxx.html
    ... I have an html file that displays data in a table format. ... I would like to automatically apply grid lines to this data as ... opening these html files with Excel and they just want to see the data ...
    (microsoft.public.excel)