Re: advanced customization of plots and figures
- From: "Tom? " <tmezger_NOSPAM@xxxxxx>
- Date: Thu, 20 Sep 2007 12:48:31 +0000 (UTC)
"Adam " <not.my.email@xxxxxxxxxxxxx> wrote in message
<fctpm8$phf$1@xxxxxxxxxxxxxxxxxx>...
"Tom? " <tmezger_NOSPAM@xxxxxx> wrote in messageexample:
<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
http://picasaweb.google.com/babouyukas/ExampleGrafix/photo#5112210045444665938
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_enUS231US231a box
very important for me is the format of the "Box". in my
plotting script i use the command "box on". this makes
axeswith the same width all around the graphic. i need the
ticsto have different width.
the second problem is the grid and specially the minor
is it(see the example, the gray lines only in the x-axis).
tics?possible to format them in a different way than the main
thank you very much!
tom
Try:
hAxes = axes; % create new axes to examine
get(hAxes)
Similarly:
set(gca,'XMinorGrid','on','MinorGridLineStyle',':','GridLineStyle','-')
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
to get a difference between the minor and normal grid line.The link I included lists all the properties with
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.
descriptions. XLim, YLim (and you'll probably want
XTickLabel too)
is there a posiblity to change the color of the minor gridhmm, I thought you could set color with the minortickstyle,
line separately from the color of the grid line?
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
.
- References:
- advanced customization of plots and figures
- From: Tom?
- Re: advanced customization of plots and figures
- From: Adam
- Re: advanced customization of plots and figures
- From: Tom?
- Re: advanced customization of plots and figures
- From: Adam
- advanced customization of plots and figures
- Prev by Date: Re: Multiple functions with same signature
- Next by Date: Re: [regexp] help finding correct pattern
- Previous by thread: Re: advanced customization of plots and figures
- Next by thread: Gating signal for MOSFET
- Index(es):
Relevant Pages
|