[Pkg-octave-devel] Bug#660750: octave-epstk: invisible axis ruins plot line

Francesco Potortì Potorti at isti.cnr.it
Tue Feb 21 12:28:35 UTC 2012


Package: octave-epstk
Version: 2.3-2
Severity: normal

Apparently, making an axis invisible when a plot line is over it,
deletes the plot line in the place where they overlap.  I append an
Octave test file wich, in the [0 0.5] interval, produces a horizontal
line overlapping an invisible axis, which is thinner than the rest of
the plot line.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages octave-epstk depends on:
ii  octave3.2  3.2.4-12

octave-epstk recommends no packages.

Versions of packages octave-epstk suggests:
ii  evince [postscript-viewer]       3.2.1-1
ii  ghostscript [postscript-viewer]  9.04~dfsg-3
ii  gv [postscript-viewer]           1:3.7.3-1
ii  octave-plot                      1.0.8-1

-- no debconf information

===File ~/articoli/Postuloca/evaal/magazine/figures/plotscores.m===
#! /usr/bin/octave -qf
## Plotting with EpsTk, the EPS toolkit (Debian package octave-epstk)

global visualise;
visualise=true;			# visualise the results with gv
eglobpar;			# get access to global parameters

## Local line parameters
lwidth=0.5;			# line width [mm]
txlegend="";
rxlegend="";
nodash=0;			# line dash lenght [mm]
black=[0,0,0];			# line colour [RGB]
grey=[1,1,1]*.3;		# line colour [RGB]

global X Y;
function opendata(trace)
  eglobpar;
  global X Y;
  switch (trace)
    case "accuracyscore"
	 X = [0 0.5 2 4];
	 Y = [1 1 0.4 0];
  endswitch
  eopen([trace,".eps"]);
  ## See einit.m for a complete list of parameters to set
  ePlotTitleDistance=8;		# title distance [mm]
  eXAxisSouthLabelText="Third quartile of error [m]"; # X label
  eYAxisWestLabelText="Score"; # Y label
  eXAxisNorthVisible=false;	# North X axis off
  eYAxisEastVisible=false;	# East Y axis off
  #eXGridVisible=true;		# X-grid
  #eYGridVisible=true;		# Y-grid
  #ePlotLegendPos=[10 90];  # position relative to left bottom corner of plot area
endfunction

function closeandview()
  global visualise;
  eclose
  ebbox(5);			# bounding box with 5mm frame
  if (visualise)
    global eGhostview;
    eGhostview="gv --scale=2 --media=bbox"; # magnified viewer
    eview			# show the graph
  endif
endfunction

################################################################
opendata("accuracyscore");
#ePlotTitleText="Accuracy score";
ePlotAreaHeight=35; ePlotAreaWidth=70;	 # plot size [mm]
eXAxisSouthScale=[0 1 5];	# [start step end]
eYAxisWestScale=[0 0.2 1];	# [start step end]
eAxesTicShortLength=0		# minor ticks off
eplot(X,Y,txlegend,nodash,black,lwidth)
closeandview;
============================================================





More information about the Pkg-octave-devel mailing list