★ wanayoo — archive 1999 http://users.ece.gatech.edu/~schooley/gnuplot.htmlNouvelle recherche | Portail wanayoo

Macintosh gnuplot

Last modified Friday, April 24, 1998 2:15 PM


You are visitor since May 3, 1996

Using gnuplot with Alpha 7.0

The versions of gnuplotMode.tcl that ship with gnuplot 2.0b4 and Alpha 7.0 don't function correctly. A working version is available at the link below. You also need to do the following:

  1. Replace the gnuplotMode.tcl in Alpha's modes folder with the one you get here.
  2. In the Config->Packages menu, select 'Rebuild Package Index'.
  3. Restart Alpha. (May not be necessary, but it can't hurt.)
  4. Select 'Gnuplot' in the Config-Packages menu. A bullet should appear next to 'Gnuplot'.
  5. In the Config->Global->Menus... dialog, enable the Gnuplot menu.
  6. Everything should be working at this point. You should be able to launch gnuplot from Alpha, and launching gnuplot should start Alpha if necessary and create the console window. If the console window doesn't appear, you may need to select 'Console' from Alpha's gnuplot menu or 'Command' from gnuplot's 'Window' menu. If this fails, quit everything and restart Alpha.
New gnuplotMode.tcl

Updated Interapplication Code

Serge Droz has modified the interapplication code so that your program can find gnuplot even if it is on a different volume. New Interapplication Code for versions 1.0.x of Mac gnuplot. New Interapplication Code for versions 2.0.x of Mac gnuplot.

Now Available - Gnuplot 2.0 b4

Fixes OccupiedBlockOK assertion. Fixes gif corruption in b3. Fixes bug in b1 that caused gnuplot to hang whenever 'quit' was entered into the Alpha console.

Gnuplot 2.0 b1 Information

This probably isn't ready to ship, but I've been promising it so long that I felt it was better to go ahead and release it than to wait any longer. A few things may broken. I'm leaving a34 on the server for the time being.

Mac gnuplot prerelease (b4)
Bug Reports and Suggestions

Details:

Processor and System Requirements:

Note: Large plots may require more memory than what is stated above.

Alpha Text Editor

You should use the text editor Alpha as the console and text editor. Please use Alpha 6.5 or later. An integrated console and text editor is under development, but Alpha will continue to be a better solution for most people. BBEdit support is possible, but someone else will have to write a BBEdit plug-in. I am willing to support this. If you are interested in doing it, please let me know.

Gnuplot will still run if Alpha is not present. There is also a setting in the preferences dialog which tells gnuplot not to use a console at all. This enables you to drive gnuplot via Apple events without having the console in the way.

Macintosh Specifics

Gnuplot Specifics

Known Bugs

Things To Do

Available terminals
Terminal Description
table   Dump ASCII table of X Y [Z] values to output
macintosh   Macintosh Graphic Window
aifm   Adobe Illustrator 3.0 Format
cgm   Computer Graphics Metafile
dumb   printer or glass dumb terminal
gif   GIF format
mif   Frame maker MIF 3.00 format
pbm   Portable bitmap
png   Portable Network Graphics
postscript   PostScript graphics language
latex   LaTeX picture environment
emtex   LaTeX picture environment with emTeX specials
pslatex   LaTeX picture environment with PostScript \specials
pstex   plain TeX with PostScript \specials
eepic   EEPIC -- extended LaTeX picture environment
tpic   TPIC -- LaTeX picture environment with tpic \specials
pstricks   LaTeX picture environment with PSTricks macros
texdraw   LaTeX texdraw environment
mf   Metafont plotting standard

Other Notes

  • I had a major hard-drive data loss at the end of February. As a result:
  • Previous versions of gnuplot 2.0 had support for QuickDraw GX. This support is no longer present but will be restored in the future.
  • AppleScript support is incomplete but is currently being restored.
  • Gnuplot 2.0 is the former server application with the features of the former large application. As such, it is a complete rewrite. I found that it made more sense to do this than to try to build on the old base.
  • I plan to restore the localization feature as soon as it makes sense to do so.
  • Quick Links

    Mac Gnuplot Frequently Asked Questions List
    Gnuplot 3.6 Information and links - This link takes you to information on the most recent version.
    Bug Reports and Suggestions

    Here is a really cool QuickTime movie of a rotating, 3d gnuplot plot. This movie was created by Holger Skok using gnuplot and an application which makes Macintosh PICT files into QuickTime movies. AppleScript was used to repeatedly drive gnuplot in order to generate the individual frames.

    Click here for a flattened QuickTime movie.


    Jay Bourland has created an interactive web page which uses Macintosh gnuplot and Userland Frontier to generate interactive plots. Check it out. Jay said that he would like some feedback on this.

    Click here for an interactive demonstration of Macintosh gnuplot and Frontier scripting.


    There are several processor specific versions here: 68K, 68K /w fpu, and PPC. Due to a lack of storage space, there is no fat binary version currently available. The fat binary option may return with the next release.

    Old Gnuplot 3.6

    The old stand-alone application using the 3.6 code is still available. It is based on patchlevel 224 of the gnuplot 3.6 beta code. The translation files are not yet available. If you are using the C interface routines, you need to update them for the 3.6 release of the application.
    The current version of the 3.6 release is 1.0.5b.

    3.6 application

    Bug Reports and Suggestions

    Please send any bug reports to me at schooley@ee.gatech.edu. In addition, please feel free to send along any suggestions for improvements. Just remember, I'm working on this in my spare time. However, if anything bad is reported, I'll try to get a fix out as soon as possible.

    Please include the version number in any bug reports, along with your cpu configuration.

    I am keeping a list of people to be notified via email of new releases. Please let me know if you want to be included in this list.

    Finally, please don't post this for general distribution yet. It's not ready.

    ---Dave---
    Top of Page


    Mac Gnuplot Frequently Asked Questions List

    A lot of this is obsolete due to changes is version 2.0.
    1. Why does gnuplot give me an error whenever I type 'help'?
      (Mostly obsolete)
    2. Why does gnuplot crash whenever I try to run it on a PowerBook 100, Mac SE, etc... (Mostly obsolete)
    3. Can I drive gnuplot from my own application?
    4. What's the point of this server thing?
    5. Is gnuplot scriptable?
    6. Does/will gnuplot support QuickDraw GX?
    7. Can I use the Alpha text editor with the large application instead of the server?
    8. If I use Alpha with the large application, can I get rid of the console supplied by the application? (Obsolete)
    9. Can I plot data via Apple Events? New!
    10. Can I redistribute Mac gnuplot?
    11. Why did some things break between the alpha (a15) and the beta versions?

    Back to Top of page


    Why does gnuplot give me an error whenever I type 'help'?

    The help information is stored in a file called 'gnuplot.gih'. This file belongs in a folder named 'docs' which belongs in the same folder as the gnuplot application.

    Back to beginning of FAQ

    Why does gnuplot crash whenever I try to run it on a PB 100, Mac SE, etc...

    The application uses the PowerPlant class library supplied by Metrowerks. This class library makes calls to Color QuickDraw routines which may not be available on your Mac. A crash may occur as a result. The next version of the application will check to see if Color QuickDraw is available. It still won't run, but at least it won't crash. Your only option now is to use the server application. Unfortunately it cannot display Mac graphics. A future version of the server will include a simple Mac graphics window so that it can display plots.

    Back to beginning of FAQ

    Can I drive gnuplot to plot graphics from my own application?

    Yes! Mac gnuplot is Apple event aware. C source for interapplication communication with gnuplot is available on the ftp site. There are also links available on this page. The interapplication code changed between the gnuplot 3.5 and gnuplot 3.6 versions, so you need to use the correct file.

    Back to beginning of FAQ

    What's the point of this server thing?

    The server was initially a quick way to get the gnuplot 3.6 code up and running on the Macintosh. Jeff Schindall was working on the Alpha tcl code at the time, so we combined the two efforts. It's still very useful if you are mainly generating plots in PostScript, LaTeX, etc... and like to use Alpha. The plumbing of the larger application has been redesigned to use the server as it's back end. The server now has a simple Mac graphics window.

    Back to beginning of FAQ

    Is gnuplot scriptable?

    Yes. It's recordable too.

    Back to beginning of FAQ

    Does/will gnuplot support QuickDraw GX?

    Yes! Try 'set term mac gx'. The support is somewhat spotty at present. GX Printing is supported for graphic output but not with the text editor. Most text features are not supported yet. Improved GX support is in progress.

    Back to beginning of FAQ

    Can I use the Alpha text editor with the large application instead of the server?

    Yes. The apple event code is the same in both the application and the server. There will be more integration between the two applications with version 1.1 of the gnuplot application.

    Back to beginning of FAQ

    If I use Alpha with the large application, can I get rid of the console supplied by the application?

    Not yet. In the next release of the application you will be able to do this in the PPC version of gnuplot. A bug in the 68K version of Alpha currently prevents this from working on the 68K version.

    Back to beginning of FAQ

    Can I plot data via Apple Events?

    Yes! The plot and splot Apple events now assume that incoming text consists of data which needs to be plotted. This works for AppleScript, Frontier, or if you are sending the Apple events from another external program. If you want to plot the data from a file, you need to send either a file specification or an alias. You can plot the data in combination with a file or files if you wrap everything into a single parameter as a list. You can one item in the list can consist text data. You can also plot the clipboard by attaching the clipboard, which is a property of the application, to your list.

    Back to beginning of FAQ

    Can I redistribute Mac gnuplot?

    Please not now. You can when it gets out of beta. It will someday.

    Back to beginning of FAQ

    Why did some things break between the alpha (a15) and the beta versions?

    The beta versions of Mac gnuplot are based on the beta version of the gnuplot 3.6 code. I took the opportunity to rewrite the way that the Mac interface code communicates with the core gnuplot code. As a result, some things broke and are only now getting fixed. A major casualty was the 'Settings' menu. While this has been a step backwards in some ways, it is a major improvement in others. If I had not done this, a Mac version of gnuplot 3.6 might never have seen the light of day.

    Back to beginning of FAQ Top of Page


    Return to Dave's Home Page
    [Bicycling] [Wind Energy] [Solar Energy] [Policy] [gnuplot] [Quotes] [Temperature] [Widgets] [Kaelee]
    Problems with this page? Please contact: David Schooley / david.schooley@ee.gatech.edu