On Thursday 26 October 2006 02:40 pm, Timoth=C3=A9e Lecomte wrote:
> Timoth=C3=A9e Lecomte wrote:
>=20
> Would you mind if I send a screenshot along with some explanation to the=
=20
> cairo mailing list (that's one of the first example of using cairo as a=20
> backend for 3D rendering program I think) ?
I was planning to put it on the web site anyhow.
It's basically just the hidden2 demo we already have, with different
coloring+fill options.
=2D-=20
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742

On Thursday 26 October 2006 02:37 pm, Timoth=C3=A9e Lecomte wrote:
> Ethan Merritt wrote:
> > <...>
> > As an apology, I offer the following test script for
> > transparency. The output is rather nice in png or wxt.
> >
>
> Wow ! This one is wonderful ! I have never imagined such a thing
> would be possible with gnuplot !
> (doesn't work with png for me - no transparency, only with wxt)
You need to select truecolor in order to have an alpha channel in png.
set term png truecolor
=2D-=20
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle WA

Joe Koski wrote:
> on 10/25/06 11:28 AM, Timoth=E9e Lecomte at timothee.lecomte@... wro=
te:
>
> =20
>> <...>
>>> Then I went back and rebuilt gnuplot-4.2.rc1, including wxt, with the=
new
>>> pango and cairo. The wxt plot window again appears with gnuplot, but =
I still
>>> can't get focus inside the plot window. I do see Mac fonts, however. =
The
>>> cursor behavior has changed. When the plot appears, my arrow cursor c=
hanges
>>> to crosshairs similar to X11, which is a step forward. When I place t=
he
>>> crosshairs over the plot window, the cursor changes to a spinning col=
or
>>> pinwheel. If I click back to the finder, I get my arrow cursor back.
>>>
>>> I'm with Per. I'm surprised that the wxWidget folks don't have a way =
of
>>> getting focus without bundling. Should I post the question there?
>>> =20
>>> =20
>> It doesn't seem to be a rare question, since the wxWidgets wiki is qui=
te
>> lengthy about it. We should have looked at it earlier. Below are a
>> couple of interesting links:
>>
>> http://www.wxwidgets.org/wiki/index.php/App_Not_Getting_Input_When_Run
>>
>> "You _must_ create a bundle for Carbon and Cocoa apps on OS X.
>>
>> If your binary is named "foo" then this works for testing purposes
>> (don't ship like this): mkdir -p foo.app/Contents/MacOS mv foo
>> foo.app/Contents/MacOS
>>
>> When you get things working you can eventually tweak your build system
>> to make the bundle before the final link step and pass -o
>> foo.app/Contents/MacOS/foo to the linker rather than plain -o foo."
>>
>> Some more details:
>> http://www.wxwidgets.org/wiki/index.php/Distributing_WxWidgets_Applica=
tions-Di
>> stributing_WxMac_Programs
>> http://www.wxwidgets.org/wiki/index.php/Installing_WxMac#Executables_.=
28.27Bun
>> dles.27.29
>> http://www.wxwidgets.org/wiki/index.php/WxMac_Issues#Building_a_MacOSX=
_applica
>> tion_bundle
>>
>> Could you try the mkdir suggestion above ? (Don't use my second patch,
>> it should be useless.) It seems quite straightforward.
>>
>>
>> I also asked on irc again, and was redirected to the following page:
>> http://wxforum.shadonet.com/viewtopic.php?t=3D9146
>>
>> The alternative to "bundling" is the "resource fork", that can be done=
with:
>>
>> /Developer/Tools/Rez -d __DARWIN__ -t APPL -d __WXMAC__ -i
>> <insert_app_name> -d WXUSINGDLL -o <insert_app_name> Carbon.r
>>
>> where <insert_app_name> is the name of the executable (gnuplot here). =
On
>> http://wxforum.shadonet.com/viewtopic.php?t=3D6045&highlight=3Dmacos, =
it is
>> said that this is only for test purposes.
>>
>>
>> I hope you'll finally get it working !
>>
>> Best regards,
>>
>> Timoth=E9e
>>
>> =20
> Timoth=E9e, Per,
>
> I tried both approaches to resolve the focus problem with my gnuplot bi=
nary,
> but the problem persists. Thanks to Timoth=E9e for finding the links th=
at
> clearly state the problem, and also state the solutions.
>
> First I tried making a simple gnuplot.app structure like the one in the=
web
> page
>
> http://www.wxwidgets.org/wiki/index.php/App_Not_Getting_Input_When_Ru=
n
>
> but, if you try to execute gnuplot, it probably needs to launch a termi=
nal
> application like iTerm.app, then gnuplot via a script so you can commun=
icate
> with the gnuplot. (I think that's what Per was hinting to me a year or =
more
> back when he suggested iTerm.app, while we were trying to figure out ho=
w to
> bundle octave). When I double-clicked gnuplot.app, the hard disk made a
> noise, but nothing happened.
> =20
I have two things to say about that:
First, it looks like you can use the "open" command to start the bundled=20
application from the command line. Since gnuplot is a command-line=20
application, it may help. ('open gnuplot.app' or 'open -b gnuplot.app'=20
may do the trick)
Second, what is said on the above page may not be enough. From another=20
discussion on irc and reading of the other pages I mentioned, it looks=20
like you also need a file called gnuplot.app/Contents/Info.plist that=20
describes the content of the bundle. Below is an example adapted from=20
http://www.wxwidgets.org/wiki/index.php/Mac_OS_X_And_Xcode_For_Beginners =
:
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www=
.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version=3D"1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>gnuplot</string>
<key>CFBundleGetInfoString</key>
<string>gnuplot 4.2, (c) 2006 Thomas Williams and others</string>
<key>CFBundleIconFile</key>
<string>wxmac.icns</string>
<key>CFBundleIdentifier</key>
<string>org.gnuplot.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
<string>4.2, (c) 2006 Code::gnuplot</string>
<key>CFBundleName</key>
<string>gnuplot</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>4.2</string>
<key>LSRequiresCarbon</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>Copyright 2006 me</string>
</dict>
</plist>
> Then I tried the Rez incantation
>
> jakoski$ /Developer/Tools/Rez -d __DARWIN__ -t APPL -d __WXMAC__ -i gnu=
plot
> -d WXUSINGDLL -o gnuplot Carbon.r
>
> and, indeed, something happened to gnuplot, as there was a delay of a s=
econd
> or two at the command line while the hard disk made noise, and no error=
s
> were reported. When I tried the resulting Rez modified binary, it worke=
d,
> but the focus problem remained.
I'm sorry, but I can't help here.
> Do we need a separate wxt.app, or is that
> called AquaTerm?
> =20
No, the wxt terminal is built inside the gnuplot executable. There is=20
nothing more than the gnuplot executable and the other libraries that=20
you compiled before, and I guess those are loaded at run-time and don't=20
need to be in the bundle or anything.
> Unless we can get the Rez modification to work, there are some importan=
t
> implications for gnuplot here, and I think Per can give us some insight
> based on his experience with gnuplot and AquaTerm.
>
> If I am interpreting this correctly, the only sensible way to distribut=
e
> gnuplot-4.2 for Macs, with the wxt terminal included, is via a bundled
> application. This is great for the end user (easy installation), but
> requires significantly more work on the Mac development end to pull thi=
ngs
> together.
> =20
Ultimately, it will be a matter of a makefile, nothing extraordinary. We=20
just need to get it working by hand first ;) I'm sorry not to have a Mac=20
to help more here.
Best regards,
Timoth=E9e

Richard Henwood wrote:
> I appreciate that CVS is in a state of flux, and that you'll probably have
> fixed this before press send on this message...
We hadn't. But now we do. Thanks for the information.

On Oct 26, 2006, at 01:32, Joe Koski wrote:
>>
> Timoth=E9e, Per,
>
> I tried both approaches to resolve the focus problem with my =20
> gnuplot binary,
> but the problem persists. Thanks to Timoth=E9e for finding the links =20=
> that
> clearly state the problem, and also state the solutions.
>
> First I tried making a simple gnuplot.app structure like the one in =20=
> the web
> page
>
> http://www.wxwidgets.org/wiki/index.php/=20
> App_Not_Getting_Input_When_Run
>
> but, if you try to execute gnuplot, it probably needs to launch a =20
> terminal
> application like iTerm.app, then gnuplot via a script so you can =20
> communicate
> with the gnuplot. (I think that's what Per was hinting to me a year =20=
> or more
> back when he suggested iTerm.app, while we were trying to figure =20
> out how to
> bundle octave). When I double-clicked gnuplot.app, the hard disk =20
> made a
> noise, but nothing happened.
>
> Then I tried the Rez incantation
>
> jakoski$ /Developer/Tools/Rez -d __DARWIN__ -t APPL -d __WXMAC__ -i =20=
> gnuplot
> -d WXUSINGDLL -o gnuplot Carbon.r
>
> and, indeed, something happened to gnuplot, as there was a delay of =20=
> a second
> or two at the command line while the hard disk made noise, and no =20
> errors
> were reported. When I tried the resulting Rez modified binary, it =20
> worked,
> but the focus problem remained. Do we need a separate wxt.app, or =20
> is that
> called AquaTerm?
>
> Unless we can get the Rez modification to work, there are some =20
> important
> implications for gnuplot here, and I think Per can give us some =20
> insight
> based on his experience with gnuplot and AquaTerm.
>
> If I am interpreting this correctly, the only sensible way to =20
> distribute
> gnuplot-4.2 for Macs, with the wxt terminal included, is via a bundled
> application.
Yes. I wasn't sure whether Timoth=E9e's addition was in fact a complete =20=
wxGnuplot or just a terminal (see older mail). The point here is that =20=
with wxMac/wxCocoa *everything* must be wrapped up in a single wx-=20
application.
As you guessed, AquaTerm is simply a mechanism to (seamlessly) detach =20=
the process doing the drawing (e.g. gnuplot) and the process doing =20
the rendering (AquaTerm) in a controlled manner.
As an experiment, pull out the wxWhatever.app/Contents/MacOS/whatever =20=
execuatable from any wxMac demo and start it at the prompt, and =20
you'll see the can't-get-any-events behaviour.
*However*, X11 on Mac OS X is the same as on any other platform, so =20
the focus problem shouldn't arise if you used wxWidgets for X11.
> This is great for the end user (easy installation), but
> requires significantly more work on the Mac development end to pull =20=
> things
> together.
A guesstimate is that a proper[1] port to make gnuplot a self-=20
contained Cocoa application is about the same amount of work as a =20
wxMac port. It all comes down to how familiar you are with the =20
respective class libraries etc.
[1] With proper I don't mean to imply that other ways aren't any =20
good, just that *on the Mac* Cocoa provides the richest application =20
environment, enjoys full benefit from systemwide improvements, =20
adheres automatically to look-and-feel, well supported etc. Someone =20
would still have to maintain it though.
>
> A Mac .dmg installer is probably indicated to also install header =20
> files,
> etc. so that octave and other open source applications can find =20
> gnuplot
> during builds. Fortunately, gnuplot doesn't change every five =20
> minutes like
> octave does, so this is probably doable without too much burden on the
> developers in the long run, once the approach is perfected.
>
> We could sure use a knowledgeable Mac developer about now. I do not =20=
> claim to
> be one, so any and all advice will be given careful consideration.
While I wouldn't mind to be considered for the above category, I have =20=
even less time than usual at my disposal.
In fact, we should try to find someone (preferrably with an Intel =20
based Mac) willing to help out with Mac development since:
1) it is not likely that I will have more time to spend on open =20
source project in the near future
2) I can't test/fix problems related to Intel Macs
/Per

on 10/25/06 11:28 AM, Timoth=E9e Lecomte at timothee.lecomte@... wrote:
> Joe Koski wrote:
>> <snip>
>> Timoth=E9e, Per,
>>=20
>> We're now back to the focus issue in with the wxt terminal, but more on =
that
>> later.
>>=20
>> To summarize my progress so far:
>>=20
>> I now have installed on my Mac: cairo, pango, gettext, wxMac, and pkg-co=
nfig
>> above and beyond the usual Xcode-2.4 tools. Are any of these unnecessary=
for
>> building wxt on the Mac?
>> =20
> I am not sure about gettext, but I guess it's a dependency of glib,
> right ? If it's the case, you're all set.
>> To build cairo, I did
>>=20
>> ./configure --enable-atsui --enable-quartz --enable-freetype=3Dno
>> --enable-xlib=3Dno
>>=20
>> After two minor corrections to the pango build (thanks to Behdad on the
>> gtk-i18n Mail List), I built pango with
>>=20
>> ./configure --with-x=3Dno
>> =20
> Ok. Good to know.
>=20
>> Then I went back and rebuilt gnuplot-4.2.rc1, including wxt, with the ne=
w
>> pango and cairo. The wxt plot window again appears with gnuplot, but I s=
till
>> can't get focus inside the plot window. I do see Mac fonts, however. The
>> cursor behavior has changed. When the plot appears, my arrow cursor chan=
ges
>> to crosshairs similar to X11, which is a step forward. When I place the
>> crosshairs over the plot window, the cursor changes to a spinning color
>> pinwheel. If I click back to the finder, I get my arrow cursor back.
>>=20
>> I'm with Per. I'm surprised that the wxWidget folks don't have a way of
>> getting focus without bundling. Should I post the question there?
>> =20
>=20
> It doesn't seem to be a rare question, since the wxWidgets wiki is quite
> lengthy about it. We should have looked at it earlier. Below are a
> couple of interesting links:
>=20
> http://www.wxwidgets.org/wiki/index.php/App_Not_Getting_Input_When_Run
>=20
> "You _must_ create a bundle for Carbon and Cocoa apps on OS X.
>=20
> If your binary is named "foo" then this works for testing purposes
> (don't ship like this): mkdir -p foo.app/Contents/MacOS mv foo
> foo.app/Contents/MacOS
>=20
> When you get things working you can eventually tweak your build system
> to make the bundle before the final link step and pass -o
> foo.app/Contents/MacOS/foo to the linker rather than plain -o foo."
>=20
> Some more details:
> http://www.wxwidgets.org/wiki/index.php/Distributing_WxWidgets_Applicatio=
ns-Di
> stributing_WxMac_Programs
> http://www.wxwidgets.org/wiki/index.php/Installing_WxMac#Executables_.28.=
27Bun
> dles.27.29
> http://www.wxwidgets.org/wiki/index.php/WxMac_Issues#Building_a_MacOSX_ap=
plica
> tion_bundle
>=20
> Could you try the mkdir suggestion above ? (Don't use my second patch,
> it should be useless.) It seems quite straightforward.
>=20
>=20
> I also asked on irc again, and was redirected to the following page:
> http://wxforum.shadonet.com/viewtopic.php?t=3D9146
>=20
> The alternative to "bundling" is the "resource fork", that can be done wi=
th:
>=20
> /Developer/Tools/Rez -d __DARWIN__ -t APPL -d __WXMAC__ -i
> <insert_app_name> -d WXUSINGDLL -o <insert_app_name> Carbon.r
>=20
> where <insert_app_name> is the name of the executable (gnuplot here). On
> http://wxforum.shadonet.com/viewtopic.php?t=3D6045&highlight=3Dmacos, it is
> said that this is only for test purposes.
>=20
>=20
> I hope you'll finally get it working !
>=20
> Best regards,
>=20
> Timoth=E9e
>=20
Timoth=E9e, Per,
I tried both approaches to resolve the focus problem with my gnuplot binary=
,
but the problem persists. Thanks to Timoth=E9e for finding the links that
clearly state the problem, and also state the solutions.
First I tried making a simple gnuplot.app structure like the one in the web
page
http://www.wxwidgets.org/wiki/index.php/App_Not_Getting_Input_When_Run
but, if you try to execute gnuplot, it probably needs to launch a terminal
application like iTerm.app, then gnuplot via a script so you can communicat=
e
with the gnuplot. (I think that's what Per was hinting to me a year or more
back when he suggested iTerm.app, while we were trying to figure out how to
bundle octave). When I double-clicked gnuplot.app, the hard disk made a
noise, but nothing happened.
Then I tried the Rez incantation
jakoski$ /Developer/Tools/Rez -d __DARWIN__ -t APPL -d __WXMAC__ -i gnuplot
-d WXUSINGDLL -o gnuplot Carbon.r
and, indeed, something happened to gnuplot, as there was a delay of a secon=
d
or two at the command line while the hard disk made noise, and no errors
were reported. When I tried the resulting Rez modified binary, it worked,
but the focus problem remained. Do we need a separate wxt.app, or is that
called AquaTerm?
Unless we can get the Rez modification to work, there are some important
implications for gnuplot here, and I think Per can give us some insight
based on his experience with gnuplot and AquaTerm.
If I am interpreting this correctly, the only sensible way to distribute
gnuplot-4.2 for Macs, with the wxt terminal included, is via a bundled
application. This is great for the end user (easy installation), but
requires significantly more work on the Mac development end to pull things
together.=20
A Mac .dmg installer is probably indicated to also install header files,
etc. so that octave and other open source applications can find gnuplot
during builds. Fortunately, gnuplot doesn't change every five minutes like
octave does, so this is probably doable without too much burden on the
developers in the long run, once the approach is perfected.
We could sure use a knowledgeable Mac developer about now. I do not claim t=
o
be one, so any and all advice will be given careful consideration.
Meanwhile, I'll be reading the other links that Timoth=E9e found.
Joe

Dr. Hartmut Ehmler wrote:
> I have a single plot with x ranging from [0:100] and data points in that
> interval. Then I want to add a function f(x) , which describes the data
> only in a limited interval, e.g. [0:50]. How do I add the function with
> that range to the plot? If I try "plot [0:50] f(x), data" gnuplot will
> always change the x range of the whole plot and I cannot see the data from
> [50:100].
Parametric mode is the generic answer to this kind of problem:
set parametric
set trange [0:50]
plot 'data', t, f(t) title "f(x)"

On Tuesday 24 October 2006 10:39 pm, Nibbler wrote:
>
> If i use previous code I get picture where is just a lines, but if I
> leave these out
> set terminal png
> set output "output.png"
>
> then I get picture where is filledcurves.
Please see sample output at
http://gnuplot.sourceforge.net/demo/fillcrvs.html
These are png plots made by gnuplot version 4.0
> My gnuplot version is 4.0
It is possible that your copy of gnuplot, even though it is
version 4.0, was built using a very old png driver. You can
tell by inspecting the output of "help set term png" or
"show version long". If that is the case, you'll either
have to rebuild gnuplot with the current png driver
(which is, after all, itself more that 5 years old) or
save your plot in some other format like *.eps and then
convert to png in a separate step.
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle WA

Nibbler wrote:
> How do you "make output"? I.e. which terminal driver, which options?
>
> set terminal png
> set output "output.png"
Looks like your gnuplot was compiled with the "wrong" PNG driver. There
are two drivers going by that name. Only one of them has ever had PM3D
support. See 'show version long'.

Dr. Hartmut Ehmler wrote:
> I have a single plot with x ranging from [0:100] and data points in that
> interval. Then I want to add a function f(x) , which describes the data
> only in a limited interval, e.g. [0:50]. How do I add the function with
> that range to the plot? If I try "plot [0:50] f(x), data" gnuplot will
> always change the x range of the whole plot and I cannot see the data from
> [50:100].
Try using the ternary operator as part of your function definition (help ternary). Define the support in the range of [0,50], e.g.,
f(x) = x<0 && x>50 ? 1/0 : <function definition>
(If you want the function to actually be zero outside its support, replace 1/0 with 0.)
Then try plotting with range [0:100]
Dan

I have a single plot with x ranging from [0:100] and data points in that
interval. Then I want to add a function f(x) , which describes the data
only in a limited interval, e.g. [0:50]. How do I add the function with
that range to the plot? If I try "plot [0:50] f(x), data" gnuplot will
always change the x range of the whole plot and I cannot see the data from
[50:100].
--
Dr. Hartmut Ehmler
W7-X Magnets and Cryostat
currently at CEA, Saclay (France)
0033-169085706

Joe Koski wrote:
> <snip>
> Timoth=E9e, Per,
>
> We're now back to the focus issue in with the wxt terminal, but more on=
that
> later.
>
> To summarize my progress so far:
>
> I now have installed on my Mac: cairo, pango, gettext, wxMac, and pkg-c=
onfig
> above and beyond the usual Xcode-2.4 tools. Are any of these unnecessar=
y for
> building wxt on the Mac?
> =20
I am not sure about gettext, but I guess it's a dependency of glib,=20
right ? If it's the case, you're all set.
> To build cairo, I did
>
> ./configure --enable-atsui --enable-quartz --enable-freetype=3Dno
> --enable-xlib=3Dno
>
> After two minor corrections to the pango build (thanks to Behdad on the
> gtk-i18n Mail List), I built pango with
>
> ./configure --with-x=3Dno
> =20
Ok. Good to know.
> Then I went back and rebuilt gnuplot-4.2.rc1, including wxt, with the n=
ew
> pango and cairo. The wxt plot window again appears with gnuplot, but I =
still
> can't get focus inside the plot window. I do see Mac fonts, however. Th=
e
> cursor behavior has changed. When the plot appears, my arrow cursor cha=
nges
> to crosshairs similar to X11, which is a step forward. When I place the
> crosshairs over the plot window, the cursor changes to a spinning color
> pinwheel. If I click back to the finder, I get my arrow cursor back.
>
> I'm with Per. I'm surprised that the wxWidget folks don't have a way of
> getting focus without bundling. Should I post the question there?
> =20
It doesn't seem to be a rare question, since the wxWidgets wiki is quite=20
lengthy about it. We should have looked at it earlier. Below are a=20
couple of interesting links:
http://www.wxwidgets.org/wiki/index.php/App_Not_Getting_Input_When_Run
"You _must_ create a bundle for Carbon and Cocoa apps on OS X.
If your binary is named "foo" then this works for testing purposes=20
(don't ship like this): mkdir -p foo.app/Contents/MacOS mv foo=20
foo.app/Contents/MacOS
When you get things working you can eventually tweak your build system=20
to make the bundle before the final link step and pass -o=20
foo.app/Contents/MacOS/foo to the linker rather than plain -o foo."
Some more details:
http://www.wxwidgets.org/wiki/index.php/Distributing_WxWidgets_Applicatio=
ns-Distributing_WxMac_Programs
http://www.wxwidgets.org/wiki/index.php/Installing_WxMac#Executables_.28.=
27Bundles.27.29
http://www.wxwidgets.org/wiki/index.php/WxMac_Issues#Building_a_MacOSX_ap=
plication_bundle
Could you try the mkdir suggestion above ? (Don't use my second patch,=20
it should be useless.) It seems quite straightforward.
I also asked on irc again, and was redirected to the following page:
http://wxforum.shadonet.com/viewtopic.php?t=3D9146
The alternative to "bundling" is the "resource fork", that can be done wi=
th:
/Developer/Tools/Rez -d __DARWIN__ -t APPL -d __WXMAC__ -i=20
<insert_app_name> -d WXUSINGDLL -o <insert_app_name> Carbon.r
where <insert_app_name> is the name of the executable (gnuplot here). On=20
http://wxforum.shadonet.com/viewtopic.php?t=3D6045&highlight=3Dmacos, it =
is=20
said that this is only for test purposes.
I hope you'll finally get it working !
Best regards,
Timoth=E9e

Thanks again for your advice Hans-Bernhard.
And thanks for reply Ethan.
How do you "make output"? I.e. which terminal driver, which options?
set terminal png
set output "output.png"
set title "Title"
set xlabel 'Time' tc lt 4
set ylabel 'Data' tc lt 4
set xdata time
set timefmt "%Y-%m-%d %H:%M:%S"=20
set grid
plot "data.dat" using 1:3 with filledcurve 1
reset
If i use previous code I get picture where is just a lines, but if I leave
these out
set terminal png
set output "output.png"
then I get picture where is filledcurves.
My gnuplot version is 4.0
Hans-Bernhard Br=C3=B6ker wrote:
>=20
> Nibbler wrote:
>=20
>> I would like to have two files. File1 contains titles, (set grid),
>> (plot),
>> etc.. And one file2 contains all parameters what it gets from another
>> place.
>=20
> Just
>=20
> =09load "file2"
>=20
> from within file1.
>=20
>> I have plot-file which draws filledcurves. It works fine when the
>> picture comes to screen, but if I try to make output then the picture
>> is ok, but there aren't any filledcurves ?
>=20
> How do you "make output"? I.e. which terminal driver, which options?
>=20
>=20
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim=
o
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
> _______________________________________________
> gnuplot-beta mailing list
> gnuplot-beta@...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>=20
>=20
--=20
View this message in context: http://www.nabble.com/Can-gnuplot-read-parame=
ters-from-another-file--tf2499304.html#a6986538
Sent from the Gnuplot - Dev mailing list archive at Nabble.com.

on 10/24/06 4:49 PM, Ethan Merritt at merritt@... wrote:
> On Tuesday 24 October 2006 03:25 pm, Joe Koski wrote:
>> I'm with Per. I'm surprised that the wxWidget folks don't have a way
>> of getting focus without bundling. Should I post the question there?
>
> Could someone please enlighten me as to what "bundling" means
> in this context?
>
> The historical meaning of the word as used in my part of the world does
> not seem to pertain :-)
>
> http://www.eyewitnesstohistory.com/bundling.htm
>
Ethan,
I'm just learning also, but I can see bundles in the Applications folder on
my Mac. All dependencies necessary to run an application are included in a
single structure that you can often "drag and drop" from the installer
window to (for example) the Applications folder. To start the application,
you double-click it. In other cases a disk image installer (.dmg) is used to
place the application (.app) into the correct folder, and also place other
files into other Mac locations such as /Library.
Per sent us a link to the wikipedia
http://en.wikipedia.org/wiki/Bundle_%28Mac_OS_X%29
which is a much better explanation.
Actually, I much prefer the definition of bundling that you found.
Joe

On Tuesday 24 October 2006 03:25 pm, Joe Koski wrote:
> I'm with Per. I'm surprised that the wxWidget folks don't have a way
> of getting focus without bundling. Should I post the question there?
Could someone please enlighten me as to what "bundling" means
in this context?
The historical meaning of the word as used in my part of the world does
not seem to pertain :-)
http://www.eyewitnesstohistory.com/bundling.htm
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle WA

on 10/23/06 2:23 PM, Timoth=E9e Lecomte at timothee.lecomte@... wrote:
> Joe Koski a =E9crit :
>> on 10/20/06 3:53 PM, Timoth=E9e Lecomte at timothee.lecomte@... wrote:
>>=20
>> =20
>>>> First, from a Mac user's perspective, wxt uses an entire boat load of
>>>> dependencies that are not normally seen on the Mac. To build wxt, I ha=
d to
>>>> install (and sometimes in a specific order) wxMac, atk, pkg-config, gl=
ib,
>>>> gettext, freetype, fontconfig, pango, cairo, and gtk+.
>>>> =20
>>> gtk+ is absolutely not necessary when you use wxMac (it is if you use
>>> wxGTK, though gnuplot does not absolutely depend on it - only for soem
>>> tweaks). atk is a gtk+ dependency, so it's not needed either. freetype
>>> isn't supposed to be needed, since cairo is capable of using native Mac
>>> fonts system (so-called "atsui" system). Fontconfig is only necessary
>>> for the cairo freetype backend, so you don't need it either.
>>> =20
>>=20
>> Timoth=E9e,
>>=20
>> I went back and removed fontconfig, freetype, pango, and atk. I got
>> cairo-1.2.4 to build and install successfully with
>>=20
>> ./configure --enable-atsui --enable-quartz --enable-freetype=3Dno
>> --enable-xlib=3Dno
>>=20
>> Question: Do I need xlib for wxt on a Mac?
>> =20
> No, you don't.
>=20
>> I then went back and rebuilt and reinstalled wxMac-2.6.3 in case it was
>> dependent on cairo for headers, libraries, etc.
>>=20
>> Then I attempted a rebuild of gnuplot-4.2.rc1. The ./configure is still
>> looking for pango:
>> <snip>
>>=20
>> As a result, no wxt terminal was built. Is there a way to not use pango =
and
>> still build a wxt terminal?
>> =20
> No, there isn't. Pango is needed, it's a direct dependency for the wxt
> terminal. However you can build it without freetype and without fontconfi=
g.
>=20
> Thanks again for your efforts.
>=20
> Best regards,
>=20
> Timoth=E9e
Timoth=E9e, Per,
We're now back to the focus issue in with the wxt terminal, but more on tha=
t
later.
To summarize my progress so far:
I now have installed on my Mac: cairo, pango, gettext, wxMac, and pkg-confi=
g
above and beyond the usual Xcode-2.4 tools. Are any of these unnecessary fo=
r
building wxt on the Mac?
To build cairo, I did
./configure --enable-atsui --enable-quartz --enable-freetype=3Dno
--enable-xlib=3Dno
After two minor corrections to the pango build (thanks to Behdad on the
gtk-i18n Mail List), I built pango with
./configure --with-x=3Dno
Then I went back and rebuilt gnuplot-4.2.rc1, including wxt, with the new
pango and cairo. The wxt plot window again appears with gnuplot, but I stil=
l
can't get focus inside the plot window. I do see Mac fonts, however. The
cursor behavior has changed. When the plot appears, my arrow cursor changes
to crosshairs similar to X11, which is a step forward. When I place the
crosshairs over the plot window, the cursor changes to a spinning color
pinwheel. If I click back to the finder, I get my arrow cursor back.
I'm with Per. I'm surprised that the wxWidget folks don't have a way of
getting focus without bundling. Should I post the question there?
All suggestions are welcome.
Joe
=20

Nibbler wrote:
> I would like to have two files. File1 contains titles, (set grid), (plot),
> etc.. And one file2 contains all parameters what it gets from another place.
Just
load "file2"
from within file1.
> I have plot-file which draws filledcurves. It works fine when the
> picture comes to screen, but if I try to make output then the picture
> is ok, but there aren't any filledcurves ?
How do you "make output"? I.e. which terminal driver, which options?

On Monday 23 October 2006 09:55 pm, Nibbler wrote:
>
> I would like to have two files. File1 contains titles, (set grid),
> (plot), etc.. And one file2 contains all parameters what it gets from
> another place.
>
> So is this possible? Can I somehow do like this:
>
> File 1
> set terminal png
> set output "output.png"
> set title "My first graph"
> read xrange from file2 ??
load "file2"
> File 2
>
> set xrange[-100:100]
> etc..
> Another question:
>
> I have plot-file which draws filledcurves. It works fine when the
> picture comes to screen, but if I try to make
> output then the picture is ok, but there aren't any filledcurves ?
You neglect to tell us what *kind* of output.
But let me guess - you are creating a PostScript or *.eps file,
right? The common PostScript viewers (ghostview, gv) have a
bug that does not draw pattern-filled areas unless you turn
off anti-aliasing in the Options menu. It should come out fine
on an actual printer, however.
If I have guessed wrong, well - you need to provide more information.
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle WA

> It is true that when changing a configuration option one must also change
> the associated summary message, but that strikes me as a reasonable price.
I'm mainly refering to the lists of terminal drivers.
This is just one more place that gets forgotten when e.g. new terminals are
added. Just like them not being added in Makefiles (which I usually check
and fix for releases).
It would be better to generate such a list, rather than hardcoding it.

Hi !
I have "plot-file" where I have gnuplot commands example:
set terminal png
set output "output.png"
set title "My first graph"
set xrange[-100:100]
etc...
I get some of parameters (like xrange) from another place (program sets the
xrange values)
And now I would like to separate this "plot-file".
I would like to have two files. File1 contains titles, (set grid), (plot),
etc.. And one file2 contains all parameters what it gets from another place.
So is this possible? Can I somehow do like this:
File 1
set terminal png
set output "output.png"
set title "My first graph"
read xrange from file2 ??
File 2
set xrange[-100:100]
etc..
Another question:
I have plot-file which draws filledcurves. It works fine when the picture
comes to screen, but if I try to make
output then the picture is ok, but there aren't any filledcurves ?
--
View this message in context: http://www.nabble.com/Can-gnuplot-read-parameters-from-another-file--tf2499304.html#a6967096
Sent from the Gnuplot - Dev mailing list archive at Nabble.com.

On Monday 23 October 2006 02:54 pm, Daniel Farrell wrote:
> Hi,
>
> In order to install in Ubuntu I had to manually install automake. I
> now run:
> automake (GNU automake) 1.9.6
>
> My problem was that the ./prepare stage wasn't creating the make
> file.
But you should not need the ./prepare stage in order to build from
the -rc candidate tarball, just as you will not need it to build
from the final release. The release source contains a
pre-built ./configure script.
> On 23 Oct 2006, at 20:18, Ethan Merritt wrote:
> > On Saturday 21 October 2006 09:48 am, Guy Wiener wrote:
> >> Hi everyone,
> >> I am trying to build gnuplot 4.2 from source on my Ubuntu 6.06
> >> machine. The problem is that when I run "configure" it does not
> >> find the libs to create the X terminal and. Can someone please
> >> tell me what are the correct configuration values to build gnuplot
> >> on Ubuntu with X terminal support?
> >
> > I have not used Ubuntu, but a quick bit of googling turns up
> > http://www.ubuntuforums.org/showthread.php?p=1560784
> >
> > from which I take the bottom line to be that you should
> > install the meta-package xlibs-dev
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle WA