Set size of printed plots

View: New views
5 Messages — Rating Filter:   Alert me  

Set size of printed plots

by Thomas Göbel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi listmates,

i am printing my octave plots via
        print -depslatex -color -F:9 example.tex

to have the posibility to add equations to the x/y-labels of the plot.
The problem is i dont know how to set the size of the printed
example.tex plot?

In LaTeX i use \input{example} to place the graph.

Using gnuplot there is the switch
        set size

but i didnt found something similiar in octave.

How do you guys print plots to use it with LaTeX?

Many thanks,
Tom
--
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

attachment0 (205 bytes) Download Attachment

Re: Set size of printed plots

by Ben Abbott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Oct 23, 2009, at 12:12 PM, Thomas Göbel wrote:

> Hi listmates,
>
> i am printing my octave plots via
> print -depslatex -color -F:9 example.tex
>
> to have the posibility to add equations to the x/y-labels of the plot.
> The problem is i dont know how to set the size of the printed
> example.tex plot?
>
> In LaTeX i use \input{example} to place the graph.
>
> Using gnuplot there is the switch
> set size
>
> but i didnt found something similiar in octave.
>
> How do you guys print plots to use it with LaTeX?
>
> Many thanks,
> Tom

I don't know which version of Octave you are using, but I'll assume  
you are using the latest release. If you change the papersize property  
for the figure,  that should do what you want. For example, I expect  
the following will produce a result whose size is 2.5x3.5 inches.

        set (gcf, "papersize", [2.5, 3.5])

I'd appreciate it if you give that a try and let me know what the  
result is. It is likely that there is a bug here. If so either myself  
or someone else should fix it.

Ben
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Set size of printed plots

by John W. Eaton-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 23-Oct-2009, Thomas Göbel wrote:

| i am printing my octave plots via
| print -depslatex -color -F:9 example.tex
|
| to have the posibility to add equations to the x/y-labels of the plot.
| The problem is i dont know how to set the size of the printed
| example.tex plot?
|
| In LaTeX i use \input{example} to place the graph.
|
| Using gnuplot there is the switch
| set size
|
| but i didnt found something similiar in octave.
|
| How do you guys print plots to use it with LaTeX?

I thought gnuplot's epslatex terminal would make appropriately sized
plots, but if not, can't you use something like

  \resizebox{5in}{!}{\input{example}}

to make the plot whatever size you want?

jwe


_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: Re: Set size of printed plots

by Thomas Göbel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* <bpabbott@...> [25.10.2009 12:20]:

> On Oct 23, 2009, at 12:12 PM, Thomas Göbel wrote:
>
> >Hi listmates,
> >
> >i am printing my octave plots via
> > print -depslatex -color -F:9 example.tex
> >
> >to have the posibility to add equations to the x/y-labels of the plot.
> >The problem is i dont know how to set the size of the printed
> >example.tex plot?
> >
> >In LaTeX i use \input{example} to place the graph.
> >
> >Using gnuplot there is the switch
> > set size
> >
> >but i didnt found something similiar in octave.
> >
> >How do you guys print plots to use it with LaTeX?
> >
> >Many thanks,
> >Tom
>
> I don't know which version of Octave you are using, but I'll assume
> you are using the latest release. If you change the papersize
> property for the figure,  that should do what you want. For example,
> I expect the following will produce a result whose size is 2.5x3.5
> inches.
I am using octave 3.2.3 with octave-forge plug-ins.
>
> set (gcf, "papersize", [2.5, 3.5])

The papersize option didn`t work for me. The result is the same as
without this option. I can`t see an change here.

--
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

attachment0 (205 bytes) Download Attachment

Re: Set size of printed plots

by Thomas Göbel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* <jwe@...> [25.10.2009 12:20]:

> On 23-Oct-2009, Thomas Göbel wrote:
>>
>> i am printing my octave plots via
>> print -depslatex -color -F:9 example.tex
>>
>> to have the posibility to add equations to the x/y-labels of the plot.
>> The problem is i dont know how to set the size of the printed
>> example.tex plot?
>>
>> In LaTeX i use \input{example} to place the graph.
>>
>> Using gnuplot there is the switch
>> set size
>>
>> but i didnt found something similiar in octave.
>>
>> How do you guys print plots to use it with LaTeX?
>>
Hi John,

> I thought gnuplot's epslatex terminal would make appropriately sized
> plots, but if not, can't you use something like
>
>   \resizebox{5in}{!}{\input{example}}

thanks for that tip. Resizebox is exactly what i searched for, didn`t
know that command.

--
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

attachment0 (205 bytes) Download Attachment