gnumed-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-bugs] Error attempting Gnuplot on Kirk's measurement 0.9.3


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] Error attempting Gnuplot on Kirk's measurement 0.9.3
Date: Mon, 2 May 2011 11:27:17 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, May 01, 2011 at 06:40:27PM -0700, Jim Busser wrote:

> Is it fine to keep posting in -bugs or do you want these back at -devel?

-devel would be fine as well.

> When I install the MacPorts 'gnuplot' package, it installs two binaries 
> gnuplot and gnuplot_x11 …

The former likely will not have a driver for displaying
results in X11, only plotting and creating images on disk.
What those binaries are called, however, is up to the whims
of whoever packaged this.

It could also be that "gnuplot" is a shell script deciding
whether to run plain gnuplot or gnuplot_x11 depending on
whether it runs under X11 or not.

> I am using GNUmed in X11 and so I expect my GNUmed should
> try to call gnuplot_x11?

... that it should end up *using* that, yes, but not calling
that directly.

You can *make* it call that if you need to by creating a
symlink from somewhere early in the PATH.

> The installed-binaries locations are
> 
>       /opt/local/var/macports/software/gnuplot/4.4.3_0/opt/local/bin/gnuplot
>       /opt/local/libexec/gnuplot/4.4/gnuplot_x11 

Is either of those in PATH ?

> So my questions are:
> 
> 1) should I add to my PATH
> 
>       /opt/local/libexec/gnuplot/4.4/

That would make the "gnuplot_x11" runnable from PATH, yes,
except if there's another "gnuplot_x11" somewhere earlier in
PATH.

> 3) do you think GNUmed should have any adjustment for this gnuplot_x11 or in 
> place of adjusting gnumed should I create a symlink
> 
>       gnuplot --> gnuplot_x11
> 
> somewhere in my PATH? (I am assuming this will let GNUmed try to "call" 
> gnuplot without having to know the call will be routed to gnuplot_x11?)

If you are *sure* you want to run

        /opt/local/libexec/gnuplot/4.4/gnuplot_x11

when GNUmed says "gnuplot" then you can do this:

        mkdir ~/bin
        cd ~/bin
        create symlink "gnuplot" pointing to 
"/opt/local/libexec/gnuplot/4.4/gnuplot_x11"
        add ~/bin to the *head* of your PATH

If that works and you happen to want to automate that for
whenever you run GNUmed you can do the necessary steps in
either of

        /etc/gnumed/gnumed-startup-local.sh
        ${HOME}/.gnumed/scripts/gnumed-startup-local.sh

because that's what gm-from-vcs.sh does:

# source systemwide startup extension shell script if it exists
if [ -r /etc/gnumed/gnumed-startup-local.sh ] ; then
        echo "running /etc/gnumed/gnumed-startup-local.sh"
        . /etc/gnumed/gnumed-startup-local.sh
fi


# source local startup extension shell script if it exists
if [ -r ${HOME}/.gnumed/scripts/gnumed-startup-local.sh ] ; then
        echo "running ${HOME}/.gnumed/scripts/gnumed-startup-local.sh"
        . ${HOME}/.gnumed/scripts/gnumed-startup-local.sh
fi


Doing it like that will make the PATH changing and symlink
use local to running GNUmed.

> 2) is there anything about the default settings (see below) which looks like 
> any problem?
>
> contents of plain text settings file 
> /opt/local/share/gnuplot/4.4/app-defaults/Gnuplot
> *****************************************************************************************
> 
> ! X resources for gnuplot x11 terminal driver
> ! More information available in the gnuplot documentation
> ! From inside gnuplot, try 'help set term x11'
> 
> ! User interface settings
>   gnuplot*exportselection:  on
>   gnuplot*fastrotate:   on
>   gnuplot*feedback:     on
> ! gnuplot*ctrlq:        off
>   gnuplot*persist:      off

You may want to try setting this persist to on if you cannot
get a window to show at all.

> ! gnuplot*raise:        on
>   gnuplot*dashed:       off
> 
> ! Default font and font encoding
> ! gnuplot*font:        verdana,11,bold
> ! gnuplot*encoding:    iso8859-15
> 
> ! Default line colors
> ! gnuplot*background:  white
>   gnuplot*textColor:   black
>   gnuplot*borderColor: black
>   gnuplot*axisColor:   black
>   gnuplot*line1Color:  red
>   gnuplot*line2Color:  green
>   gnuplot*line3Color:  blue
>   gnuplot*line4Color:  magenta
>   gnuplot*line5Color:  cyan
>   gnuplot*line6Color:  sienna
>   gnuplot*line7Color:  orange
>   gnuplot*line8Color:  coral
> 
> ! Default line widths
>   gnuplot*axisWidth:   0
>   gnuplot*borderWidth: 2
>   gnuplot*line1Width:  1
>   gnuplot*line2Width:  1
>   gnuplot*line3Width:  1
>   gnuplot*line4Width:  1
>   gnuplot*line5Width:  1
>   gnuplot*line6Width:  1
>   gnuplot*line7Width:  1
>   gnuplot*line8Width:  1
> 
> ! Default point size
>   gnuplot*pointsize:   1
> 
> ! Default dash patterns for monochrome Displays
> ! 0 means a solid line.
> ! A two-digit number `jk` means a dashed line with a repeated pattern of 
> ! `j` pixels on followed by `k` pixels off.  For example, '16' is a dotted
> ! line with one pixel on followed by six pixels off.
> ! More elaborate on/off patterns can be specified with a four-digit value.
> ! The default values shown below are for monochrome displays
> ! or monochrome rendering on color or grayscale displays.  For color displays,
> ! the default for each is 0 (solid line) except for `axisDashes`
>   gnuplot*borderDashes:   0
>   gnuplot*axisDashes:    16
>   gnuplot*line1Dashes:    0
>   gnuplot*line2Dashes:   42
>   gnuplot*line3Dashes:   13
>   gnuplot*line4Dashes:   44
>   gnuplot*line5Dashes:   15
>   gnuplot*line6Dashes: 4441
>   gnuplot*line7Dashes:   42
>   gnuplot*line8Dashes:   13
> 
> ! Colormap usage and preferred visual Display class
> ! gnuplot*maxcolors:  <integer>
> ! gnuplot*mincolors:  <integer>
> ! gnuplot*visual:     <visual name>
>   gnuplot*mono:         off
>   gnuplot*gray:         off
>   gnuplot*reverseVideo: off
> 
> ! Grayscale setting (only checked if program is invoked as gnuplot -gray)
>   gnuplot*textGray:   black
>   gnuplot*borderGray: gray50
>   gnuplot*axisGray:   gray50
>   gnuplot*line1Gray:  gray100
>   gnuplot*line2Gray:  gray60
>   gnuplot*line3Gray:  gray80
>   gnuplot*line4Gray:  gray40
>   gnuplot*line5Gray:  gray90
>   gnuplot*line6Gray:  gray50
>   gnuplot*line7Gray:  gray70
>   gnuplot*line8Gray:  gray30

Other than that looks fine to me.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]