Re: apply export style to figure via m file



"Adam " <not.my.email@xxxxxxxxxxxxx> wrote in message
<fctrk8$ppo$1@xxxxxxxxxxxxxxxxxx>...
"Tom? " <tmezger_NOSPAM@xxxxxx> wrote in message
<fctpfe$min$1@xxxxxxxxxxxxxxxxxx>...
Hi people,

i'm trying to automate the export of figures via m-files.
now i'm trying to apply a style that i have already saved,
let's say it's called "my_style".

what i expect is to make some call like this:

apply_style_function(figureNr,'my_style')

then i can export the figure to png via
print -dpng



how can i make it? does the function "apply_style_function"
already exist?

thank you very much!!!!

tom

I've always written a function that sets all the desired
properties using set() like we were doing in the other
thread.

I just noticed something. If you click "file" in your
formatted figure there is a "Generate M-File..." option.
You can then call this function with your data and generate
a formatted output.

gl, I understand your frustration with office products ;-)

~Adam


if you have a figure, you can click on file, export setup.
there you can choose and define styles. Here, you can set
the width of the graphic, the resolution, and the font
sizes. My idea was to use this nice gui to create a style,
which i can use to format all the plots i need to. I whant
to write a script, where you plot, set a style and print as
png.


I understand that it is posible to set all this optios via
set() and print, but using the "generate M-File" function
only gives me an idea how THIS specific plot has been
formated. at the time i plot another thing, i'll need to
change some parts of the code from this generated M-File.

really, i think this has to be posible. i think the export
gui just calls this function at background and format the
picture like the style says.


thank you in advice!

tom

.



Relevant Pages

  • Re: apply export style to figure via m file
    ... My idea was to use this nice gui to create a style, ... which i can use to format all the plots i need to. ... to write a script, where you plot, set a style and print as ... change some parts of the code from this generated M-File. ...
    (comp.soft-sys.matlab)
  • Re: Matlab Data Analysis
    ... I have been given the program with no documentation and have been ... Matlab, I am not too sure how to extract data from the program and to ... In what format should the data be exported from MATLAB? ... What types of graphs do you want to plot? ...
    (comp.soft-sys.matlab)
  • Re: advanced customization of plots and figures
    ... very important for me is the format of the "Box". ... the second problem is the grid and specially the minor ... I need this to implement the excel layout ... macro that format the plot. ...
    (comp.soft-sys.matlab)
  • 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: display dates on a plot
    ... To go for equal spacing on the x, ... If, though, your dates are in "serial date format", then ... also how to control the format in the plot since my dates ...
    (comp.soft-sys.matlab)