| 1 |
Greater priority |
| 2 |
---------------- |
| 3 |
|
| 4 |
libplot: take account of the fact that many versions of the Symbol font |
| 5 |
(in PS output, at least) now have the Euro symbol in position #160 of the |
| 6 |
ISO-Latin-1 encoding, rather than having a (nonbreakable) space. |
| 7 |
|
| 8 |
libplot: enhance the SVG driver to keep track of whether the output is |
| 9 |
consistent with the `Full' or `Tiny' SVG profile. The only relevant |
| 10 |
differences appear to be that in SVGT, "all numbers must be limited in |
| 11 |
range between -32,767.9999 to +32,767.9999 or the scientific notation |
| 12 |
equivalent", and that when drawing paths, the elliptical arc commands |
| 13 |
`A' (absolute ell. arc) and `a' (relative ell. arc) are not available. |
| 14 |
|
| 15 |
libplot: enhance the SVG driver to use SVG's <tspan>..</tspan> construct |
| 16 |
for styling and positioning substrings. Our present scheme for changing |
| 17 |
fonts, adding subscripts, etc., in the middle of a label, works fine if the |
| 18 |
font(s) are available on the SVG viewer and have the metrics we believe |
| 19 |
they do. But either of those two assumptions may fail. So the |
| 20 |
<tspan>..</tspan> construct should always be used. Nested tspans will be |
| 21 |
needed. Note: SVGT does not support tspans. |
| 22 |
|
| 23 |
libplot: enhance the SVG driver to adjust the width of text strings to be |
| 24 |
what it should be, according to our internal font database. This is |
| 25 |
important if a requested font is unavailable. |
| 26 |
|
| 27 |
libplot: decide whether to provide a workaround for a font problem in |
| 28 |
recent releases of XFree86: the Type 1 versions of the Symbol and |
| 29 |
ZapfDingbats font use an erroneous coding scheme (character codes are |
| 30 |
offset by 0x20 = 32). |
| 31 |
|
| 32 |
libplot: improve the handling of compound paths to support non-nested |
| 33 |
subpaths, i.e. multiple simple paths that may intersect each other, as well |
| 34 |
as themselves. For this, use Raph Levien's libart? SVG Plotters already |
| 35 |
support non-nested subpaths, though it isn't documented. |
| 36 |
|
| 37 |
libplot: add support for a user-level `closepath' operation. Internally, |
| 38 |
drawing of Hershey fonts should use it. |
| 39 |
|
| 40 |
libplot: to CGM Plotters, add support for the version-4 WebCGM features, |
| 41 |
i.e., hyperlinks based on CGM `application structures'. Maybe set up a |
| 42 |
standard way of defining hyperlinks, which could be used by SVG and |
| 43 |
Illustrator Plotters too? |
| 44 |
|
| 45 |
libplot: add the display list concept, i.e. retained 2-D graphical objects |
| 46 |
(will also facilitate adding support for compound objects and redrawing). |
| 47 |
libplot must become more widget-like; cf. guppi. |
| 48 |
|
| 49 |
libplot: support copying graphics from one Plotter to another (e.g., via |
| 50 |
display list; cf. OpenGL). |
| 51 |
|
| 52 |
libplot: support object-level clipping, via computation of a bounding box; |
| 53 |
maybe precise rectangle-level clipping too? Will require addition of |
| 54 |
clipping support to libxmi. Maybe PS-style clipping by arbitrary paths? |
| 55 |
If so, a new PS-like drawing model, with a new interpretation of |
| 56 |
savestate/restorestate, will be needed. |
| 57 |
|
| 58 |
libplot: add support for gradient fill. Which output formats provide |
| 59 |
native support for it? WebCGM, SVG and Illustrator certainly do. |
| 60 |
|
| 61 |
graph: continue librarifying the plotting routines, and incorporate them in |
| 62 |
libsciplot? Maybe a GUILE interface? |
| 63 |
|
| 64 |
graph: need better clipping for filled regions (present gnuplot-style |
| 65 |
clipping scheme is right for unfilled regions but wrong for filled ones) |
| 66 |
|
| 67 |
libplot: add support for compound objects (supported by Fig, idraw, AI). |
| 68 |
Support should be compatible with support for SVG's `containers'. |
| 69 |
|
| 70 |
libplot: add support for rectangular raster objects ("device independent |
| 71 |
rasters"). Supported in SVG and CGM format, etc. |
| 72 |
|
| 73 |
libplot: add support for tiling of paths (with device-dependent rasters). |
| 74 |
libxmi already supports this. |
| 75 |
|
| 76 |
libplot: compare its functionality with other graphics libraries, |
| 77 |
e.g. Allegro's shading and texture-mapping features, and gd. |
| 78 |
|
| 79 |
Intermediate Priority |
| 80 |
--------------------- |
| 81 |
|
| 82 |
libplot: extend parsing of BITMAPSIZE parameter to include options |
| 83 |
xsize,ysize,xorigin,yorigin,xoffset,yoffset, just like PAGESIZE. This |
| 84 |
would affect the graphing utilities (--bitmap-size option, when producing |
| 85 |
bitmap output, would be invoked similarly to to --page-size). |
| 86 |
|
| 87 |
libsciplot: new graphing library. Incorporate all functionality of VOGLE, |
| 88 |
PGPLOT, and PLPLOT libraries; check into GLE, PLOTPLUS, XYPLOT, DISLIN (not |
| 89 |
open-source; see http://www.linmpi.mpg.de/dislin/). Think about Guile, and |
| 90 |
Tcl/Tk, and Python. libsciplot will support contouring, but not 3d surface |
| 91 |
plots yet. |
| 92 |
|
| 93 |
libsciplot: when plotting a curve containing data points, symbols should be |
| 94 |
plotted _last_, after endpath() is called. |
| 95 |
|
| 96 |
libplot: In Illustrator format, colors may be specified by CMYK values or |
| 97 |
(in recent Illustrator versions) by RGB values. Illustrator's mapping |
| 98 |
between them is not documented, and does not seem to be the usual one. |
| 99 |
When generating Illustrator format we use CMYK, but maybe we should use RGB |
| 100 |
instead? |
| 101 |
|
| 102 |
libplot: distinguish between PSPlotter and IdrawPlotter (latter will use |
| 103 |
current PSPlotter code for emitting `stateless PS', former has yet to be |
| 104 |
written). |
| 105 |
|
| 106 |
libplot bitmap Plotter support: add sub-parameters to the BITMAPSIZE |
| 107 |
parameter, for specifying offset of viewport within bitmap? Clipping too? |
| 108 |
|
| 109 |
pic2plot: extend parser to support the Bell Labs `picasso' constructions |
| 110 |
(extensions of the pic grammar). |
| 111 |
|
| 112 |
libplot: use freeware rasterizer for type 1 fonts [t1lib, by Rainer |
| 113 |
Menzner; see |
| 114 |
ftp://ftp.neuroinformatik.ruhr-uni-bochum.de/pub/software/t1lib ]. |
| 115 |
Or, if patent worries can be overcome, FreeType or FreeType2. |
| 116 |
|
| 117 |
libplot: PNG driver should optionally use indexed rather than true color. |
| 118 |
Also, should include a user-specifiable gAMA chunk? |
| 119 |
|
| 120 |
libplot: add alpha support to color specification. Maybe via new |
| 121 |
operations penalpha(), fillalpha(). (WebCGM format already includes alpha |
| 122 |
support, via a registered escape element.) |
| 123 |
|
| 124 |
libplot: if the pen level has been set to `0' by invoking pentype(), |
| 125 |
thereby turning off the edging of paths, and the drawing of marker symbols |
| 126 |
and points, then the drawing of text should be turned off too? In the |
| 127 |
texinfo documentation we've promised to do this. |
| 128 |
|
| 129 |
libplot: when path edges are not drawn (i.e. when `pentype' is called with |
| 130 |
an argument of 0), the scheme used by the PS driver for quantizing fill |
| 131 |
colors for idraw is suboptimal. Could be much improved (would need to |
| 132 |
optimize over choices of idraw's fg color, bg color, and shading level, |
| 133 |
i.e. a 3D search). |
| 134 |
|
| 135 |
ode: extend parser to plot functions as well as solve differential equations. |
| 136 |
|
| 137 |
libplot: redo X driver, to support window reuse (`persistence') by any |
| 138 |
X Plotter. Will require forking off an outboard process. |
| 139 |
|
| 140 |
graph: allow all command-line options in input data files, on comment |
| 141 |
lines; maybe write alternative parser for interactive version (gnuplot |
| 142 |
replacement). |
| 143 |
|
| 144 |
libplot: add interactivity (e.g. getloc()), during openpl()...closepl(). |
| 145 |
Need to translate back to user coordinates. [For libsciplot, even |
| 146 |
further?] For Tektronix driver, implement GIN mode (need stty twiddling?). |
| 147 |
Also need char input (cf. starbase). |
| 148 |
|
| 149 |
Break out spline() as subroutine(s), cf. fitpack? Cf. IMSL interface. |
| 150 |
Similarly with plot frame / axis drawing. For this, check into NCAR |
| 151 |
Graphics package, `autograph' routines. |
| 152 |
|
| 153 |
ode: should support popen() for output; cf. gnuplot. |
| 154 |
|
| 155 |
graph: add `boxes', `steps', `impulses', `bars' plot types (as in gnuplot). |
| 156 |
Boxes, bars should properly support --fill-fraction option. |
| 157 |
|
| 158 |
graph: add support for polar/spherical plots, 3-D (surface) plotting. |
| 159 |
|
| 160 |
Low-priority (and idle thoughts) |
| 161 |
-------------------------------- |
| 162 |
|
| 163 |
libplot: PNG driver, when outputing a grayscale image, should use the |
| 164 |
optimal bit depth. PNG grayscale (without alpha channel) supports bit |
| 165 |
depths of 1, 2, 4, 8, 16. Right now, we use bit depth 1 for bitonal |
| 166 |
images, as we should, but for grayscale images that aren't bitonal, we |
| 167 |
always use bitdepth 8. We should use 2 or 4 instead, if reasonable. |
| 168 |
|
| 169 |
libplot: Fig output format now supports specifying a `transparent color', |
| 170 |
for use when xfig exports GIF files. It would be good to support this. |
| 171 |
|
| 172 |
libplot: add a warning about color exhaustion to the GIF driver (cf. the |
| 173 |
warnings issued by the Fig and X drivers). |
| 174 |
|
| 175 |
libplot: internally, text string handling oscillates wildly back and forth |
| 176 |
between (char *) and (unsigned char *). Fix this. |
| 177 |
|
| 178 |
libplot: _flush_plotter_outstreams() method, a non-public member function |
| 179 |
of the Plotter class, should really be static. |
| 180 |
|
| 181 |
libplot: there should be a way for the "none" background color to take |
| 182 |
effect on Metafile Plotters; currently, it does not. |
| 183 |
|
| 184 |
libplot: add support for a `rounded rectangle' primitive (pic2plot will use |
| 185 |
it). SVG and Fig formats support rounded rectangles, though xfig insists |
| 186 |
that the rounded corners be quarter circles, not just quarter ellipses. |
| 187 |
|
| 188 |
libplot: finish adding support for the filling of paths to the ReGIS driver |
| 189 |
(i.e. handle the case when the paths to be filled extend beyond the edge of |
| 190 |
the ReGIS display, requiring clipping). Also make the driver do real-time |
| 191 |
display of unfilled paths, segment by segment, like the Tektronix driver. |
| 192 |
|
| 193 |
libplot: Tektronix driver used to have a feature of waiting for 1 second |
| 194 |
after performing a screen erasure, if -DGENUINE_TEKTRONIX was defined |
| 195 |
during compilation (Tektronix storage tubes took that long to clear). |
| 196 |
Restore it? |
| 197 |
|
| 198 |
plot: the --line-width and --font-size options, which are useful only when |
| 199 |
plotting old files in Unix plot(5) format, are implemented poorly. The |
| 200 |
computation, from the command-line arguments (fractional line width and |
| 201 |
font size), of the line width and font size in user coordinates, is |
| 202 |
currently correct only for graphics displays that are square. |
| 203 |
|
| 204 |
libplot: pl_parampl_r should support taking a NULL pointer (to a |
| 205 |
plPlotterParams struct), as its final argument. |
| 206 |
|
| 207 |
libplot: if HP-GL/2 driver draws with a restricted palette of pens (the |
| 208 |
default), it follows a policy of never quantizing a nonwhite color to |
| 209 |
white, i.e. to pen #0. Is this the right thing to do? (Note: this policy |
| 210 |
applies only to the pen color, not the fill color.) |
| 211 |
|
| 212 |
libplot: Ponder the comment taken from an earlier version of the source |
| 213 |
code: "We don't allow openpl() to reset the frame number to zero (in |
| 214 |
XDrawable Plotters that is, unlike XPlotters). Incrementing the frame |
| 215 |
number monotonically facilitates color cell management, since we've only |
| 216 |
got one connection to the X display (see x_erase.c)." |
| 217 |
|
| 218 |
plot: should document that `plot -TX' will use double buffering if |
| 219 |
environment variable USE_DOUBLE_BUFFERING is "yes". Maybe make that |
| 220 |
user-settable via an option? Similarly, effect of setting X_AUTO_FLUSH on |
| 221 |
graphics utilities needs to be documented. |
| 222 |
|
| 223 |
libplot: should document that a user of X Drawable Plotters or X Plotters, |
| 224 |
if desiring true thread-safety, must manually invoke XInitThreads() and |
| 225 |
possibly XtToolkitThreadInitialize(). Also, in libplot code |
| 226 |
(e.g. libplot/p_defplot.c) must add appropriate #define's so that ctime_r() |
| 227 |
and localtime_r() are defined and used. Haven't figured out how to do that |
| 228 |
yet; on some systems, defining _REENTRANT and _POSIX_SOURCE is not enough. |
| 229 |
libplot: subclass the GIF Plotter class from the generic Bitmap Plotter |
| 230 |
class. Will facilitate importing a bitmap file to serve as a background |
| 231 |
for drawing. |
| 232 |
|
| 233 |
libplot: need a queryable PRECISE_DASHING capability, indicating whether or |
| 234 |
not a Plotter supports linedash(). |
| 235 |
|
| 236 |
spline: add support for smoothing splines as well as interpolatory splines? |
| 237 |
|
| 238 |
graph: add legend support (need new --legend :string1:string2: option), |
| 239 |
i.e. gnuplot-style `key'. Maybe arbitrarily positioned arrows, text |
| 240 |
strings also. See how NCAR Graphics does it. |
| 241 |
|
| 242 |
internationalization: think about removing strcasecmp (what if user called |
| 243 |
setlocale i.e. set LOCALE env var)? Similarly worry about . vs , everywhere, |
| 244 |
e.g. in PS files. |
| 245 |
|
| 246 |
libplot: improve appearance of octagonal marker symbols (symbol #30 and |
| 247 |
#31), i.e., make the octagon regular. Present non-regular shape dates back |
| 248 |
to Bob Beach's mid-1970s Unified Graphics System, from which many marker |
| 249 |
symbols were taken. |
| 250 |
|
| 251 |
libplotter: add overloaded (floating point) versions of integer operations? |
| 252 |
|
| 253 |
graph: tweak positioning of top labels, especially at large sizes. |
| 254 |
|
| 255 |
ode: add atan2() function. |
| 256 |
|
| 257 |
documentation: write more man pages. |
| 258 |
|
| 259 |
double: document it in plotutils.texi. |
| 260 |
|
| 261 |
libplot: after doing XCreatePixmap(), should check for success. See |
| 262 |
John Cwikla's article on the Motif Zone site (no graceful thread-safe way?). |
| 263 |
|
| 264 |
libplot: CQVXuv<>" are the remaining metafile op codes (printable ASCII |
| 265 |
characters other than space). Of these, CQVX are flagged as recently |
| 266 |
obsolete and should not soon be reused. What to do when op codes run out? |
| 267 |
|
| 268 |
libplot: should X driver use a non-default visual if the default visual |
| 269 |
isn't read-only? Do we wish other applications to be able to modify our |
| 270 |
color cells? Is this a genuine concern? Also, should we use a non-default |
| 271 |
visual if user specifies double buffering and the default visual doesn't |
| 272 |
support it via the X11 extension? (E.g. Xsgi.) |
| 273 |
|
| 274 |
libplot: check that Corel Draw can import generated HP-GL and HP-GL/2 |
| 275 |
files, and CGM files too. As of Corel Draw 8, a single font seems to be |
| 276 |
used for all text (by default TrueType Courier New). Check also Adobe |
| 277 |
Photoshop, Illustrator. |
| 278 |
|
| 279 |
HP-GL/2 Java viewer available at |
| 280 |
http://www.vanguard.at/products/partshpgl/english/index.htm . Should check |
| 281 |
whether it can parse our HP-GL/2 output. |
| 282 |
|
| 283 |
libplot: could spline the Hershey fonts, and use Bezier primitives to draw |
| 284 |
them? |
| 285 |
|
| 286 |
libplot: kern the HP vector fonts (Stick and Arc) that are available when |
| 287 |
producing PCL5 and HP-GL/2 output. Kerning was apparently dropped by HP in |
| 288 |
the transition from HP-GL to HP-GL/2, but we have the kerning tables. |
| 289 |
|
| 290 |
Marker symbol #1 should really be drawn as a pendown-penup motion in both |
| 291 |
HP-GL and pre-HP-GL/2, in the same way that a `point' is drawn. |
| 292 |
|
| 293 |
Very old HP-GL pen plotters can't handle full range of coordinates in many |
| 294 |
of our page types. [See our viewport sizes in libplot/g_pagetype.h; the |
| 295 |
sizes we use, taken from AutoCAD, may not be appropriate for very old pen |
| 296 |
plotters?] |
| 297 |
|
| 298 |
libplot: improve error reporting: change libplot error handler to allow use |
| 299 |
of name of executable. |
| 300 |
|
| 301 |
libplot: to the API, add a comment() method, taking printable string as |
| 302 |
argument (no control chars). For some drivers, it would appear in the |
| 303 |
output file. Could also add a title() or description() method, since some |
| 304 |
output formats support a document-level title or description string. |
| 305 |
|
| 306 |
ode: need to avoid any possibility, no matter how theoretical, of a stack |
| 307 |
blowout. |
| 308 |
|
| 309 |
Hershey fonts: add euro and cedilla. |
| 310 |
|
| 311 |
graph, plot, tek2plot, plotfont, etc.: add --display and --geometry |
| 312 |
options, for use with `-T X'? |
| 313 |
|
| 314 |
tests: check into test/plot2ai.test, test/plot2gif.test, test/plot2tek.test |
| 315 |
(not currently run, seem to give system-dependent behavior, possibly |
| 316 |
depending on rounding of floating-point numbers?) |
| 317 |
|
| 318 |
libplot: in text string format, \mk..\rt etc. could be stack machine; |
| 319 |
should also include overline, underline, radical, display fractions etc. |
| 320 |
Cf. eqn and Allen Hershey's typesetting. |
| 321 |
|
| 322 |
libplot: support hatch-filling of paths, as well as solid filling? HP-GL |
| 323 |
and CGM support hatching natively. For other formats, will need to wait |
| 324 |
until clipping is added. |
| 325 |
|
| 326 |
Other needed math software: |
| 327 |
|
| 328 |
fitting capability |
| 329 |
contour plotting via level curves; also compute enclosed area |
| 330 |
surface plotting (cf. IDL for plotting and contouring) |
| 331 |
|
| 332 |
EBCDIC. Need I say more? |