Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: plotting function won't work Followup-To: comp.graphics.apps.gnuplot Date: Thu, 05 Jan 2012 15:42:29 -0800 Organization: gnuplot development team Lines: 62 Message-ID: References: <5ea14b2b-a154-49dd-ad3a-5fde12df0879@a17g2000yqj.googlegroups.com> Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit Injection-Date: Thu, 5 Jan 2012 23:42:32 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="joalffpZlyHxFtpFd/PRrw"; logging-data="3812"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+C7Wfj6brjVv6WvG+lQp2n" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:azGSKaPi9+0vw7Xw+JLGcACT/6w= Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:820 ericgamliel wrote: > I'm new to gnuplot. I installed gnuplot 4.4 on my MacBook running > Snow Leopard. The install was via macports, so all the dependencies > were installed as well. I try to do some thing simple like, from a > bash shell type [code] gnuplot [\code] to open gnuplot. Then I type > [code] plot x [\code]. I'm told a graph of a straight line should > appear. However this does not happen. What does gnuplot say when it starts up? It should tell you what terminal type it is defaulting to. Like this: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% G N U P L O T Version 4.4 patchlevel 4 last modified November 2011 System: Linux 2.6.33.7-desktop-2mnb Copyright (C) 1986-1993, 1998, 2004, 2007-2011 Thomas Williams, Colin Kelley and many others gnuplot home: http://www.gnuplot.info faq, bugs, etc: type "help seeking-assistance" immediate help: type "help" plot window: hit 'h' Terminal type set to 'wxt' ^^^^^^^^^^^^^^^^^^^^^^^^^^^ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > I have even tried creating a post-script using the commands > [code] plot x > set term postscript eps monochrome dashed ’Times-Roman’ 28 > set output ’myplot.ps’ [\code] > > but the file myplot.ps is empty. Here the problem is clear. You must select the output device first, and only then plot to it. So your postscript file is empty because you didn't actually plot anything to it. > While trying to solve this problem i > also noticed that I should presumably have a startup file '.gnuplot' > in my home directory. This file is missing. That's fine. You don't need that file. It's just a place you can put extra initialization commands that otherwise you would have to type every time. For instance, if there is some function MyFunc(x) that you want easy access to but is not in gnuplot's standard function collection, you could define it there. > Can someone help me > understand what's happening? > > Thank you