COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Bounding box?

• Email
• Follow

A program generates 3 files, stst.dat, march1.dat and march2.dat,
and I have file 0.8 lying (a vertical line). I use this script:

#------------------------------ gnuplots
#
gnuplot << eoi
set term postscript eps enh 24
set output 'march.slab.eps'
set nokey
set size 1, 2.1
set pointsize 2.0
set multiplot
#                      u_0 vs delta:
set size 1, 1
set origin 0, 1.05
set xrange [0:1]
set yrange [0:3]
set ytics 0, 1, 3
set xlabel '{/Symbol=28 d}'
set ylabel '{/Italic=28 u_0}' rotate by 0
plot 'stst.dat' w l lt 1, '0.8' w l lt 0
#                      time march to stst
set origin 0, 0.05
set size 1, 1
set xrange [0:10]
set yrange [0:1.8]
set ytics 0, 0.5, 1.5
set nolabel
set xlabel '{/=28 t}'
set ylabel '{/Italic=28 u_0}' rotate by 0
set label 'u_0 start at 0' at 0.8, 0.35
set label 'u_0 start at 1.3' at 2, 1.4
plot 'march1.dat' w l lt 1, 'march2.dat' w l lt 1
quit
eoi

This generates the plot march.slab.eps. When I then compile
the LaTeX document that includes it, I get the error message

! LaTeX Error: Cannot determine size of graphic in march.slab (no
BoundingBox).

I do the same thing with other plots and do not get this message.
How do I fix this? I guess I had better also show the bit of LaTeX code that
is supposed to do this:

\begin{figure}[!pt]%
\begin{center}
\includegraphics*[width=0.8\textwidth]{march.slab}
\caption{blabla.}\label{Fig:march.slab}
\end{center}
\end{figure}

(and I use the packages eepic and graphicx, yes).
--
Dieter Britz (dieterhansbritz<at>gmail.com)

 0

See related articles to this posting

On 22.03.2011 15:53, Dieter Britz wrote:
>
> gnuplot<<  eoi
> set term postscript eps enh 24
> set output 'march.slab.eps'
> eoi
>
> This generates the plot march.slab.eps. When I then compile
> the LaTeX document that includes it, I get the error message
>
> ! LaTeX Error: Cannot determine size of graphic in march.slab (no
> BoundingBox).
>
> I do the same thing with other plots and do not get this message.
> How do I fix this? I guess I had better also show the bit of LaTeX code that
> is supposed to do this:
>
> \begin{figure}[!pt]%
> \begin{center}
> \includegraphics*[width=0.8\textwidth]{march.slab}
> \caption{blabla.}\label{Fig:march.slab}
> \end{center}
> \end{figure}

If you use a filename with more than one dot you must specify the
complete filename including the extension in \includegraphics. Although
in my test case LaTeX complained about a missing file, you could have
the same problem, so try using

\includegraphics*[width=0.8\textwidth]{march.slab.eps}

Christoph

 0

Am 2011-03-22 15:53, schrieb Dieter Britz:

> set size 1, 2.1

Setting the size > 1 may cause problems since a couple of releases. I
had used this in earlier scripts, too, but found that it is smoother to
change the canvas size in the termimal settingn ("set term ...")
instead. I won't rule out that plotting beyond the postscript bounding
box max confuse LaTeX.

You can specify the absolute margin positions for each sub-plot by using

set *margin screen <value>

where * stands for "r", "l", "t", "b" (i.e. rmargin, lmargin etc.), and
<value> is within [0:1]. I.e., in a single plot,

set lmargin screen 0.1
set rmargin screen 0.99
set bmargin screen 0.1
set tmargin screen 0.99

creates a left and bottom margin of 10% of the total plot canvas,
leaving enough space for margins, and tiny margins at the top and right.
For multiplots, the canvas must be partitioned into tiles into which the
subplots fit.

May I ask what exactly you have in mind? What should the multiplot graph
look like?

--
Gru�,
Ingo

 0

Ingo Thies wrote:

> Am 2011-03-22 15:53, schrieb Dieter Britz:
>
>> set size 1, 2.1
>
> Setting the size > 1 may cause problems since a couple of releases. I
> had used this in earlier scripts, too, but found that it is smoother to
> change the canvas size in the termimal settingn ("set term ...")
> instead. I won't rule out that plotting beyond the postscript bounding
> box max confuse LaTeX.
>
> You can specify the absolute margin positions for each sub-plot by using
>
> set *margin screen <value>
>
> where * stands for "r", "l", "t", "b" (i.e. rmargin, lmargin etc.), and
> <value> is within [0:1]. I.e., in a single plot,
>
> set lmargin screen 0.1
> set rmargin screen 0.99
> set bmargin screen 0.1
> set tmargin screen 0.99
>
> creates a left and bottom margin of 10% of the total plot canvas,
> leaving enough space for margins, and tiny margins at the top and right.
> For multiplots, the canvas must be partitioned into tiles into which the
> subplots fit.
>
> May I ask what exactly you have in mind? What should the multiplot graph
> look like?

Well, it did turn out, the two plots aligned one above the other, on an
upright frame. I didn't know that the extra dot in the name could bugger
the works, thanks, have replaced it with an underscore.

"Canvas" was the key. After a bit of fiddling with the size setting in the
set term statement, and using the total size 1, the picture came out right.
Thanks for the tip.
--
Dieter Britz (dieterhansbritz<at>gmail.com)

 0

3 Replies
253 Views

Similar Articles

12/6/2013 6:20:07 PM
page loaded in 63175 ms. (0)

Similar Artilces:

Check box
I am writing an application in Java which submits data to MYSQL database. I am using PDF fill able form to collect my data. Collecting part of data is working fine. Problem comes in when I try to repopulate data to the PDF form from MYSQL. The two types of objects I have on my form are text field and check boxes. Text fields I can repopulate without any problem. I need help in check boxes. I am using Jar itext-2.0.6. Any help or code example will be appreciated. ChinoKhan wrote: > I am writing an application in Java which submits data to MYSQL > database. I am using PDF fill able form t

Bounding Box
What do I need to do to correct this observation: !Latex Error: Cannot determine size of graphic in XXX.eps (no BoundingBox) The graphic size is 150px. X 100px. Thanks Bernard Bernard Murphy <ber_murphy@eircom.net> wrote: > What do I need to do to correct this observation: > > !Latex Error: Cannot determine size of graphic in XXX.eps (no BoundingBox) > The graphic size is 150px. X 100px. For a quick fix you could just put a line %%BoundingBox: 0 0 <x> <y> at the beginning of your file, where <x> and <y> stand for the desired width and heigh

In a box solutions
No affordable cluster in a box packaged solution for VMS customers from HP; that would have been too likely to spur sales. However Sun now has a datacenter in a box. Somewhat (!) bigger box (a shipping container) but the concept is pretty neat. http://seattlepi.nwsource.com/business/1700AP_Sun_Data_Center.html In article <1161125127.203157.185890@f16g2000cwb.googlegroups.com>, "Rich Jordan" <jordan@ccs4vms.com> writes: >No affordable cluster in a box packaged solution for VMS customers from >HP; that would have been too likely to spur sales. > The integrity servers don't support galaxy but I thought (at least from the mid-range rx7620 if not from the entry level servers) that they supported hard-partitioning which should allow a cluster in a box. >However Sun now has a datacenter in a box. Somewhat (!) bigger box (a >shipping container) but the concept is pretty neat. > >http://seattlepi.nwsource.com/business/1700AP_Sun_Data_Center.html > Isn't that pretty much what some Disaster Recovery services have been providing for years. Of course with their big trucks you are only supposed to be using the "portable

message box
1.how do i display a pipe line char | in the message box? current when using message and the char | (pipe line) the following mesage will be display as in second line 2.how do i aligh the message box text centre? when displaying a two or more lines in the message box. all the text is aligh to the left. i'm using c55,abc. Use "||" to display one pipe symbol. In Clarion if you want to use special characters in a string you must use a pair of them. -- Ben E. Brady http://www.clariondeveloper.com/diabetes/ Read the article... don't wait for the movie... <dorst622@yahoo.com> wrote in message news:3f0cfd98$1@news.softvelocity.com... > 1.how do i display a pipe line char | in the message box? > current when using message and the char | (pipe line) > the following mesage will be display as in second line > > 2.how do i aligh the message box text centre? > when displaying a two or more lines in the message box. > all the text is aligh to the left. > > i'm using c55,abc. > > > not working. any message after | is been display at second line. "Ben E. Brady" <y2kbrady@mindspring.com> wrote box not booting!!! loading /platform/SUNW, Sun Blade -1000/ufsboot loading/platform sun4u/ufsboot Sun Rel... .... license terms os-io \ then it hangs. I might add this box has just been flashed onto ide disk 1, I am just wondering if it it trying to boot up offthe wrong disk... ton de w wrote: > done that: > Boot device: /pci@8,600000/SUNW,qlc@4/fp0,0/disk@w21000004cfb378d1,0 > loading ufs-file-system loading /platform/SUNW, Sun Blade -1000/ufsboot > loading/platform sun4u/ufsboot > Sun Rel... > ... license terms > os-io \ > > then it hangs. > I might add this box has just been Fill text box based on combo box selection Okay this one has me stumped. I have a table called Review_Statements with the following columns: statementid type statement1 statement2 statement3 I have a form called SR_Review with an unbound combo box control (rationale_type) that is based on the statementid and type field of the table above. I also have another text box control on the same SR_Review form called rationale. This field is bound to field called "rationale" in another table called SR_Reviews. Here is what I *want* to take place. The user makes a selection in the rationale_type combo box, and based on the statementid of their choice: combine statement1, currentuser, statement2 and statement3 for that same statementid in the rationale text box (so it's stored in the rationale field of the SR_Review table). i.e., me.rationale=statement1 & currentuser & statement2 & statement3 where review_statements.statementid = me.rationale_type I can't for the life of me figure out how to do this in vb code. Can anyone help get me started? The reason I need to break up the paragraph or statement this way is that I need to track exactly who made the selection - I have to somehow get Tkinter zoom box = maximize/unmaximize box/button By zoom box I meant one of the top right button/box one uses to maximize/unmaximize the current window. -- ********************* Philippe C. Martin SnakeCard LLC www.snakecard.com ********************* Philippe C. Martin wrote: > By zoom box I meant one of the top right button/box one uses to > maximize/unmaximize the current window. This is a known problem in tcl/tk. See http://minilien.com/?7O2BAOm9t0 There is apparently a patch available. Latest tcl/tk versions apparently include the correction. HTH -- - Eric Brunel <eric (underscore) brunel (at) despammed (dot) com> - PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com Scrollable text box Hi all, I have a basic menu (compatible with IE and N6), the code of which is shown below. Is there any way that I can tidy this up - perhaps define the criteria once only for the entire menu. It seems like a lot of code for such a simple menu and repeatative in parts. Also, I take it that it should work with other popular browsers aswell e.g. Opera. Sketch <CENTER> <table width=100 border=0> <tr> <td onMouseover="this.style.backgroundColor='#D5E0B8'" onMouseout="this.style.backgroundColor='#ffffff'"><ilayer width=100%>&l Updating combo box Hi - I have a master/detail form with a combo box (AssetCode) on the master form which uses a query as its Row Source. I can choose a selection from the AssetCode combo box which fires an AfterUpdate event to find the correct record and refresh the detail form. However- if I use the forward or back buttons the combo box it still lists the last lookup value. Is there a way that I can update the value in the combo box without firing the AfterUpdate event to reflect the AssetCode value in the current recordset? Thanks Patrick Hi Patrick If I understand you right just add some code to the On Current event to write the AssetCode to the combo box. Jeff Pritchard ________________ Asken Research Pty. Ltd. Access Database Developers www.asken.com.au "Patrick" <PDGroups@gmail.com> wrote in message news:1134711486.202925.302450@g47g2000cwa.googlegroups.com... > Hi - I have a master/detail form with a combo box (AssetCode) on the > master form which uses a query as its Row Source. I can choose a > selection from the AssetCode combo box which fires an AfterUpdate event > to find the correct record and refresh the detail form. > However- if I use Autocomplete combo box with Javascript I want to know that how to design an autocomplete combo box in HTML with Javascript? There is no combo box control available for use in the HTML. Is it possible to design such kind of combo box in HTML. If so, what additional controls I need to add?? Million Thanks.. Eric In article <40053c86$1_2@rain.i-cable.com>, ericyum@i-cable.com enlightened us with... > I want to know that how to design an autocomplete combo box in HTML with > Javascript? There is no combo box control available for use in the HTML. Is > it possible to design such kind of combo box in HTML. Not a "Real" one. You can make a fake one with enough style, javascript, a text input, and a select. I doubt it would be very cross-browser, though. The combobox is a VB concept. Nix it. Novice to intermediate surfers who've never used a VB app wouldn't know what to do with it, anyways. -- -- ~kaeli~ Why do people who know the least know it the loudest? http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace On Wed, 14 Jan 2004 20:56:41 +0800, Grey <ericyum@i-cable.com> wrote: > I want to know that how to design an autocomplete combo box