Re: [Plplot-devel] git blog

2015-09-12 Thread David MacMahon
Hi, Alan, I don't know of any such option, but perhaps a newer version of git has added this feature? Another option might be to "go rogue" and use the patch utility to apply the patch in the working copy, then "git add" and "git commit" manually. Maybe patch will be able to ignore the whites

Re: [Plplot-devel] PLplot 6 and git

2015-05-24 Thread David MacMahon
Hi, Phil, On May 24, 2015, at 1:37 AM, Phil Rosenberg wrote: > I'm not sure this is right, but I would assume that if we apply a bug > fix to the v5 branch then create a patch of this commit and apply that > to the v6 branch then if we ever merge (or rebase) the branches then > git is clever enou

Re: [Plplot-devel] PLplot 6 and git

2015-05-24 Thread David MacMahon
On May 23, 2015, at 1:14 PM, Alan W. Irwin wrote: > I think we just have to agree to disagree on this issue. I agree! :-) > Fundamentally, the git world is split on the rebase-only > versus merge-only question, and we just happen to fall in different > camps. To be honest, this prompte

Re: [Plplot-devel] PLplot 6 and git

2015-05-23 Thread David MacMahon
Hi, Phil et al., On May 23, 2015, at 1:23 AM, Phil Rosenberg wrote: > I could make one last alternative suggestion. We could have a private git > site. This could have separate 5.8 and 6 branches. Then when we are ready to > merge we can rebase the branch, push it to our sf repo and close the s

Re: [Plplot-devel] Rebase workflow

2015-02-22 Thread David MacMahon
Hi, Phil. On Feb 22, 2015, at 4:52 AM, Phil Rosenberg wrote: >> In addition to Alan's suggestion, another approach would be to setup a >> >local bare git repo that all your local machines could push/pull to/from. > > I tried this. As soon as I rebase a branch I am no longer able to push > it to

Re: [Plplot-devel] Rebase workflow

2015-02-21 Thread David MacMahon
On Feb 21, 2015, at 4:59 PM, Alan W. Irwin wrote: > On 2015-02-21 20:53- Phil Rosenberg wrote: > >> Basically the rebase workflow is causing me some real problems trying >> to use multiple machines to test my changes. I have a Windows laptop, >> which is my main machine, then I have also bee

Re: [Plplot-devel] git blog

2015-02-03 Thread David MacMahon
; > -Original Message- > > From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] > > Sent: Saturday, January 31, 2015 7:15 PM > > To: David MacMahon > > Cc: Arjen Markus; PLplot development list > > Subject: git blog > > > > On 2015-01-30 10:22-0800 David MacMahon w

Re: [Plplot-devel] git blog

2015-01-30 Thread David MacMahon
On Jan 30, 2015, at 3:56 AM, Alan W. Irwin wrote: > git log --name-status Nice! I didn't know about --name-status. I've always used --stat. Same idea, slightly different output. Dave -- Dive into the World of Para

Re: [Plplot-devel] Problem pushing changes to the repository

2015-01-30 Thread David MacMahon
Hi, Arjen, On Jan 30, 2015, at 1:15 AM, Arjen Markus wrote: > the thing that has frustrated me using git is the fact that unlike subversion > and most other revision control systems I have used, things are arranged in > small steps. This is a difference, to be sure, but I have grown to appreci

Re: [Plplot-devel] git blog

2015-01-30 Thread David MacMahon
Hi, Alan, On Jan 30, 2015, at 2:43 AM, Alan W. Irwin wrote: > So instead of either set of commands above you should be following the > detailed recipe which is > > git checkout master > git fetch > git merge --ff-only origin/master FWIW, the pull command also accepts --ff-only. I have setup a

Re: [Plplot-devel] An issue with the ps device driver that is extraordinarily sensitive to rounding

2014-10-23 Thread David MacMahon
Hi, Alan, Thanks for the interesting read! On Oct 23, 2014, at 3:49 PM, Alan W. Irwin wrote: > So back to figuring out this ps device driver issue that apparently > emits isolated "M" commands that come or go due to sensitive rounding > issues that only occur in the 14th or later decimal digit o

Re: [Plplot-devel] git blog

2014-10-23 Thread David MacMahon
Hi, Alan, On Oct 22, 2014, at 6:17 PM, Alan W. Irwin wrote: > Today I wanted to discover the author, commit id, and the date for a > commit that created a particular line in a file (the restore_cmap1() > line in examples/python/xw08.py which has no C counterpart). After a bit of > searching I di

Re: [Plplot-devel] URL syntax of POST method for contents of files?

2014-09-30 Thread David MacMahon
Hi, Alan, On Sep 30, 2014, at 10:46 PM, Alan W. Irwin wrote: > POST /rest/p/project_name/mount_point/title - creates or updates the > titled page > parameter text: page text > parameter labels: comma-separated list of page labels > >> From a one-line comment further on I can infer that > for the

Re: [Plplot-devel] More discussion of our adopted rebase workflow

2014-09-24 Thread David MacMahon
Hi, Alan, On Sep 23, 2014, at 10:41 PM, Alan W. Irwin wrote: > On 2014-09-23 16:01-0700 David MacMahon wrote: > >> Just to nit pick: [...] > > Your comment above caught this nit-picker's attention. :-) Takes one to know one! :-) :-) :-) > What I was referring to

Re: [Plplot-devel] More discussion of our adopted rebase workflow

2014-09-23 Thread David MacMahon
Hi, Alan, On Sep 23, 2014, at 12:35 PM, Alan W. Irwin wrote: > On 2014-09-23 09:54-0700 David MacMahon wrote: > >> Emailing patches is tedious and error prone. > > I disagree. I have been applying user-generated patches to PLplot for > years without any patch-related

Re: [Plplot-devel] Exit calls and memory management

2014-09-23 Thread David MacMahon
Hi, Alan, On Sep 22, 2014, at 12:37 PM, Alan W. Irwin wrote: > You are much more experienced with git than me. However, I thought > that rebasing a public branch was always a bad idea for the reasons I > mentioned concerning disappearing commits. I am positive a number of > resources I read whe

Re: [Plplot-devel] README suggestion

2014-08-28 Thread David MacMahon
Hi, Alan, On Aug 28, 2014, at 12:35 PM, Alan W. Irwin wrote: > According to > http://sourceforge.net/p/forge/documentation/Files-Readme/ it may be > that all I would have to do was change the README name to README.md to > make the SF software translate that file from markdown to html, but > then

Re: [Plplot-devel] README suggestion

2014-08-28 Thread David MacMahon
Hi, Alan, On Aug 28, 2014, at 10:46 AM, Alan W. Irwin wrote: > On 2014-08-28 12:44-0400 Hazen Babcock wrote: > >> In the README file, should I be able to click on the links when viewed here? >> http://sourceforge.net/p/plplot/plplot/ci/master/tree/ > > I don't think that is possible with plain

Re: [Plplot-devel] Fwd: Re: [Plplot-core] git conversion status

2014-08-17 Thread David MacMahon
Hi, Alan, On Aug 16, 2014, at 11:03 AM, Alan W. Irwin wrote: > Ideas from the git gurus, please. I think the ongoing concern/discussion of deleting branches in git might be due to a lingering svn mindset vis a vis branching. I could be wrong, but I think deleting a branch in subversion also d

Re: [Plplot-devel] [PATCH] Id keyword changes made when creating tag v5_9_7

2011-01-10 Thread David MacMahon
Hi, Alan, On Jan 10, 2011, at 4:50 PM, Alan W. Irwin wrote: > I confirm those Id difference as well with that svn diff command, e.g., > > -# $Id:$ > +# $Id$ > > That implies that colon was removed. And yet we have > > softw...@raven> grep Id examples/tcl/x24 > # $Id: x24 11447 2011-01-07 07:46

Re: [Plplot-devel] [PATCH] Id keyword changes made when creating tag v5_9_7

2011-01-10 Thread David MacMahon
mples/d/x20d.d examples/d/x21d.d examples/d/x22d.d examples/d/x26d.d examples/d/x28d.d examples/d/x31d.d examples/tcl/x25 Dave On Jan 10, 2011, at 1:32 PM, Alan W. Irwin wrote: > On 2011-01-10 10:09-0800 David MacMahon wrote: > >> >> This patch adds the Id keyword changes that w

[Plplot-devel] [PATCH] Id keyword changes made when creating tag v5_9_7

2011-01-10 Thread David MacMahon
This patch adds the Id keyword changes that were presumably inadvertently committed during the creation of the v5_9_7 tag rather than on trunk. --- examples/f95/x26f.f90 |2 +- examples/f95/x27f.f90 |2 +- examples/tcl/x23 |2 +- examples/tcl/x28 |2 +- examples/tcl/x29

[Plplot-devel] [PATCH] Add doxygen comments to plot3d.c plfplot3dcl()

2011-01-10 Thread David MacMahon
This is the first pass at adding some doxygen commentary to the new(-ish) functions that support arbitrary storage of 2-D data. Please let me know if this is on the right track. I think most of the related functions will have similarly worded explanations, so perhaps it would be better to docume

[Plplot-devel] Coloring 3D plots

2011-01-08 Thread David MacMahon
I'd like to be able to make plsurf3d or plplot3d plots of complex data where the Z axis is the magnitude and the color is the phase of the complex values. Currently, these methods only offer a "MAG_COLOR" option. I think this colors the plots based on the real (i.e. signed) value rather than t

[Plplot-devel] [PATCH] Add some comments about the plfplot3dcl function

2011-01-04 Thread David MacMahon
This is the first pass at adding some commentary to the new(-ish) functions that support arbitrary storage of 2-D data. Please let me know if this is on the right track. I think most of the related functions will have similarly worded explanations, so perhaps it would be better to document the c

Re: [Plplot-devel] Broken drivers/tkwin.c?

2011-01-04 Thread David MacMahon
Hi, Alan and Arjen, Thanks for your detailed replies. I think the basic answer is that the tkwin driver (and corresponding cmake modules?) are not compatible with Snow Leopard's Tk. Here's why I say that... It turns out that cmake was finding the right X11, Tcl, and Tk include paths. The re

[Plplot-devel] Building on Mac OS X 10.6 (aka Snow Leopard)

2011-01-03 Thread David MacMahon
I'm slowly getting back to some plplot development. Since my last involvement with plplot, I have received a new computer with Mac OS X 10.6.5 (aka Snow Leopard) and a 64 bit processor (Intel Core i5). I noticed a few issues when building plplot on this new system. I'm documenting them all he

Re: [Plplot-devel] Broken drivers/tkwin.c?

2011-01-03 Thread David MacMahon
On Jan 3, 2011, at 8:36 AM, David MacMahon wrote: > Thanks, Argen! I meant: Thanks ArJen! Sorry for the typo. Dave -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolid

Re: [Plplot-devel] PLplot + Windows + Octave

2011-01-03 Thread David MacMahon
Hi, Alan, On Jan 3, 2011, at 12:33 AM, Alan W. Irwin wrote: > Could you take a look at what I have done with swig? In particular, I > felt my copying of some of the wrappers (especially the laborious > transformation of matrix results) used in matwrap was not really > taking full advantage of sw

Re: [Plplot-devel] Broken drivers/tkwin.c?

2011-01-03 Thread David MacMahon
Thanks, Argen! I also noticed this when compiling tkwin.c... drivers/tkwin.c:398: warning: assignment makes pointer from integer without a cast This is because XOpenDisplay is not declared in any #included files. I think because I'm on Mac OS X and Tk is not based on X11 on that platform. I

[Plplot-devel] Broken drivers/tkwin.c?

2011-01-02 Thread David MacMahon
I think drivers/tkwin.c got broken in r11405. I get this error when trying to compile it... drivers/tkwin.c: In function 'FillPolygonCmd': drivers/tkwin.c:859: error: 'npts' undeclared (first use in this function) Not sure how to fix it, but maybe change "npts" to "pls->dev_npts"? Thanks for a

Re: [Plplot-devel] [Plplot-general] About plfill, plline, plmap and request of functionalities

2010-12-23 Thread David MacMahon
On Dec 22, 2010, at 9:05 PM, Maurice LeBrun wrote: > A cautionary note: PL_MAXPOLY impacts a fair amount of code. Also there are > heap-vs-stack performance implications -- e.g. directly moving from a fixed > allocation to a malloc/free each time plfill() is called could suck for the > many smal

Re: [Plplot-devel] Fix for 79-character truncation on plgfnam

2010-12-19 Thread David MacMahon
On Dec 19, 2010, at 1:09 PM, Alan W. Irwin wrote: > Dave, do you see any downsides > to the above idea as I have fleshed it out? Only the ones I outlined earlier in this thread... On Dec 18, 2010, at 11:34 AM, David MacMahon wrote: > I think automatic allocation by the library functi

Re: [Plplot-devel] Fix for 79-character truncation on plgfnam

2010-12-18 Thread David MacMahon
On Dec 18, 2010, at 6:30 PM, Alan W. Irwin wrote: > On 2010-12-18 11:34-0800 David MacMahon wrote: > >> Am I missing something? > > See their example 1d where they check for truncation. Instead of > taking an error return at that point as they did in their sample code >

Re: [Plplot-devel] Fix for 79-character truncation on plgfnam

2010-12-18 Thread David MacMahon
Hi, Alan, On Dec 18, 2010, at 10:57 AM, Alan W. Irwin wrote: > Another model for plgnver, plgndev, and plgnfnam is one similar to > strlcpy that is discussed by Todd C. Miller and Theo de Raadt at > http://www.gratisoft.us/todd/papers/strlcpy.html. That is a most > interesting paper to read. I

Re: [Plplot-devel] Fix for 79-character truncation on plgfnam

2010-12-16 Thread David MacMahon
Hi, Alan, On Dec 16, 2010, at 6:54 PM, Alan W. Irwin wrote: > Here is what I propose instead of this temporary measure. We go with > a backward-incompatible API change (and associated soname bump to > force everybody to recompile) of > > c_plgfnam( char *fnam ); ==> c_plgfnam( char *fnam, PLINT

Re: [Plplot-devel] build prob on OSX and disabling wxwidget

2010-10-24 Thread David MacMahon
Hi, Philippe, On Oct 24, 2010, at 7:42 AM, philippe wrote: > using latest SVN, 11272 on OSX 10.6.4 x86_64 I got the following build > problem (100% apple faults btw). how do I disable the wxwidget > bindings ? I believe there are cmake options for enabling/disabling specific drivers, but I'm no

Re: [Plplot-devel] Support arbitrary storage of 2D user data

2010-10-10 Thread David MacMahon
could propagate these changes once they are documented. When is the next release scheduled? Thanks, Dave On Oct 10, 2010, at 2:38 PM, Hazen Babcock wrote: > David MacMahon wrote: >> >> On Apr 18, 2010, at 18:16 , Hazen Babcock wrote: >> >>> Do you recall the s

Re: [Plplot-devel] Legends

2010-10-06 Thread David MacMahon
Hi, Bill, On Oct 6, 2010, at 8:19 , Schwab,Wilhelm K wrote: > a performance argument is a stretch I agree, that's why I prefaced my comments with... >> For the smallish amounts of >> legend text it probably doesn't matter that much either way Since plotting is inherently much more number-heavy

Re: [Plplot-devel] Legends

2010-10-05 Thread David MacMahon
On Oct 5, 2010, at 21:42 , Alan W. Irwin wrote: > On 2010-10-05 22:19-0400 Schwab,Wilhelm K wrote: > >> I was interested in building it (5.9.7) to try the legend code. >> Is there a reason for the double pointer? It seems that >> >> this part\0that part\0...\0and the last part\0\0 >> >> wou

Re: [Plplot-devel] Propagation of C example changes to our other language examples is needed

2010-05-06 Thread David MacMahon
On May 6, 2010, at 7:27 , Arjen Markus wrote: > this is indeed very puzzling! I have never seen it before - and all > the stuff I used I have used countless times before. > > Also puzzling: why does a repeated invocation of test-drv-info via > make > examine different drivers? It must be record

Re: [Plplot-devel] proposal for consideration: plcont_phase.c for contour plots of phase data

2010-04-20 Thread David MacMahon
Hi, Maurice and Alan, On Apr 20, 2010, at 0:39 , Maurice LeBrun wrote: > The general remapping of coordinates is a crucial part of it. I think you are referring to the 0/2pi coordinate "seam" when transforming a rectilinear grid to a polar grid. I think Ed (correct me if I'm wrong, Ed) is r

Re: [Plplot-devel] proposal for consideration: plcont_phase.c for contour plots of phase data

2010-04-19 Thread David MacMahon
Hi, Ed, On Apr 19, 2010, at 13:47 , Ed Zaron wrote: > it involves wrapping the phases locally for the corners of each > grid cell. In addition to the already mentioned possibility of creating a "wrapped phase" copy of your data array, another alternative you might want to consider is using

Re: [Plplot-devel] Incompatible architectures in building on OS X with 64-bit Ada compiler

2010-04-16 Thread David MacMahon
On Apr 16, 2010, at 15:56 , Jerry wrote: > /usr/bin/c++ -bundle -headerpad_max_install_names -o qt.so > CMakeFiles/qt.dir/qt.cpp.o CMakeFiles/qt.dir/__/bindings/qt_gui/ > plqt.cpp.o ../src/libplplotd.9.7.0.dylib /usr/lib/libm.dylib - > framework QtSvg -framework QtGui -framework Carbon -fr

Re: [Plplot-devel] Incompatible architectures in building on OS X with 64-bit Ada compiler

2010-04-16 Thread David MacMahon
Hi, Jerry, On Apr 16, 2010, at 3:16 , Jerry wrote: > * Two PLplot-built libraries are 32-bit and ONE OF THESE IS FIRST IN > THE FILE LIST. > > The very first file in the file list is reported as 32-bit: > Non-fat file: ./qt.cpp.o is architecture: i386 How did this file managed to get built as 32

Re: [Plplot-devel] Commit of universal coordinate transform support - request for testing

2010-04-12 Thread David MacMahon
On Apr 12, 2010, at 12:16 , Alan W. Irwin wrote: > I think it is time that we take advantage of that free map data > rather than > limiting ourselves to just the four map data files that are currently > accessible from PLplot. Ideally the availability of free GIS data > (along > with changes

Re: [Plplot-devel] Commit of universal coordinate transform support - request for testing

2010-04-12 Thread David MacMahon
On Apr 12, 2010, at 9:33 , Hezekiah M. Carty wrote: > The global transform is applied after the "pltr"-type transforms, > While the signatures are the same, I'm not sure that pltr[0-2] could > be used with plstransform in a simple manner. The intent of the > function is closer to that of the map

Re: [Plplot-devel] Commit of universal coordinate transform support - request for testing

2010-04-12 Thread David MacMahon
Sounds (and looks!) interesting, Hez! Is this global transform applied before, after, or instead of the "pltr" type transformations? It looks like the global transform function has the same signature as the "pltr" transform functions so that the predefined pltr1, pltr2, etc. functions can b

[Plplot-devel] [PATCH] Add underscore glyph to Hershey fonts.

2010-04-09 Thread David MacMahon
Copied the underscore glyph info from PGPLOT and adapted it to fonts/font??.c syntax. --- fonts/font01.c |2 +- fonts/font11.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fonts/font01.c b/fonts/font01.c index fd155c8..8a42794 100644 --- a/fonts/font01.c +++ b/font

Re: [Plplot-devel] plpoin codes 92 and 95

2010-04-07 Thread David MacMahon
On Apr 7, 2010, at 15:19 , Alan W. Irwin wrote: > On 2010-04-07 14:27-0700 David MacMahon wrote: > >> FWIW, I think PGPLOT maps the underscore to Hershey symbol 590. > > I confirmed that information with > > http://www.astro.caltech.edu/~tjp/pgplot/figb2.html > >

Re: [Plplot-devel] plpoin codes 92 and 95

2010-04-07 Thread David MacMahon
Thanks, Alan, On Apr 7, 2010, at 13:55 , Alan W. Irwin wrote: > I also plan to change the index for underscore to point to a unique > Hershey > index that currently has no associated glyph. FWIW, I think PGPLOT maps the underscore to Hershey symbol 590. Dave

Re: [Plplot-devel] plpoin codes 92 and 95

2010-04-05 Thread David MacMahon
On Apr 5, 2010, at 17:09 , Alan W. Irwin wrote: > I will commit when done and the result should look good for our TTF > devices > (e.g., all our cairo and qt devices) and our PostScript devices. > > After that commit, the Hershey font error will remain for our > devices that > still use Hersh

[Plplot-devel] plpoin codes 92 and 95

2010-04-05 Thread David MacMahon
Example 6 on the PLplot website shows centered dots for codes 92 and 95 rather than the expected backslash ('\') and underscore ('_'). Code 94 shows as a degree symbol rather than a circumflex ('^'), but at least that matches PGPLOT (see http://www.astro.caltech.edu/~tjp/ pgplot/hershey.htm

Re: [Plplot-devel] Cairo and Hershey

2010-03-21 Thread David MacMahon
FWIW, I get a square bullet on the xcairo device for symbol 850 on Mac OS X. This is the same glyph that gucharmap shows for unicode symbol 0x2219 in the "symbol" font. Some other fonts have round bullets for this symbol. Can one specify a font for use with plsym? Dave On Mar 19, 2010, a

Re: [Plplot-devel] x01c & -locate problems

2010-03-21 Thread David MacMahon
Hi, Hazen, On Mar 21, 2010, at 12:50 , Hazen Babcock wrote: > > ./x01c -dev xwin -locate > This will stop reporting positions as soon as you move the cursor > outside of a plot. > > ./x01c -dev xcairo -locate > This device only reports the position when you press a key. It will > also > stop re

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-18 Thread David MacMahon
Hi, Hez, On Mar 18, 2010, at 21:16 , Hezekiah M. Carty wrote: > The checkerboard background seems to be a semi-standard approach for > viewing transparent images (Gimp uses something similar). I'm not > sure it is a good idea for our interactive devices though, as it makes > it very difficult to

Re: [Plplot-devel] 5.9.6

2010-03-18 Thread David MacMahon
On Mar 18, 2010, at 7:27 , Hazen Babcock wrote: > David MacMahon wrote: >> On Mar 17, 2010, at 18:48 , Hazen Babcock wrote: >> >>> Alan W. Irwin wrote: >>>> On 2009-11-07 16:30-0500 Hazen Babcock wrote: >>>>> (2) (a) OS-X and (b) Windows backend

Re: [Plplot-devel] 5.9.6

2010-03-17 Thread David MacMahon
On Mar 17, 2010, at 18:48 , Hazen Babcock wrote: > Alan W. Irwin wrote: >> On 2009-11-07 16:30-0500 Hazen Babcock wrote: >> >>> What are the remaining projects for the next release? >>> >>> On my list I have: >>> (1) Expand the plot settings covered by plget & plset. >>> (2) (a) OS-X and (b) Wind

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-15 Thread David MacMahon
Hi, Alan, On Mar 15, 2010, at 17:49 , Alan W. Irwin wrote: > On 2010-03-15 15:49-0700 David MacMahon wrote: > >> Using a very recent ImageMagick (6.6.0), "display" gives me the >> checkerboard background without the "-immutable" option and a >> bl

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-15 Thread David MacMahon
On Mar 15, 2010, at 14:32 , Alan W. Irwin wrote: > Then "display -immutable test_transparent.png" > > really does show the desktop underneath the plot which indeed is a > really cool-looking effect. Using a very recent ImageMagick (6.6.0), "display" gives me the checkerboard background without

Re: [Plplot-devel] [PATCH] Support arbitrary storage of 2D user data

2010-03-14 Thread David MacMahon
Hi, Alan, On Mar 14, 2010, at 10:29 , Alan W. Irwin wrote: > That is revision 10869 should be the same as > David's tree that produced his patch I can confirm that r10869 contains all the changes from my patch. Thanks again, Dave ---

Re: [Plplot-devel] [PATCH] Support arbitrary storage of 2D user data

2010-03-14 Thread David MacMahon
On Mar 13, 2010, at 16:43 , Alan W. Irwin wrote: > I have committed this patch (revision 10864). Thanks, Alan!!! > Thanks, Dave, for all your work on this arbitrary storage of 2D data > API. You're welcome. Thanks for including it! Dave -

[Plplot-devel] [PATCH] Support arbitrary storage of 2D user data

2010-03-12 Thread David MacMahon
This is a roll-up of all previous PLplot patches related to supporting arbitrary storage of 2D user data. This patch is based on (and should apply cleanly to) svn/trunk r10859. Adds support for arbitrary storage of 2D user data. This is very similar to the technique employed by some existing fu

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-10 Thread David MacMahon
On Mar 10, 2010, at 11:05 , Alan W. Irwin wrote: > There are already > some neat transparent background effects being deployed on the desktop > (e.g., if you move a KDE GUI it becomes transparent so you can see > underneath it) that show this is possible. I think this might be a property of the

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-10 Thread David MacMahon
Thanks for confirming this, Alan! On Mar 10, 2010, at 8:09 , Alan W. Irwin wrote: > -dev qtwidget does not have this problem, and neither does -dev > svg. (For > the latter, you must use the familying option -fam which will > generate two > files corresponding to the two pages.) I don't know

[Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-10 Thread David MacMahon
I just ran this... x02c -dev xcairo -bg ff_0.3 ...and noticed on the second plot I can "see through" to the first plot. I don't think I have any other non-cairo, alpha-capable drivers built so I can't tell if it's cairo-related or more general. Here are the devices I have available...

[Plplot-devel] [PATCH] Prevent plsetopt from exiting on -h and -v

2010-03-09 Thread David MacMahon
Changes opt_h and opt_v handlers to prevent -h and -v options from calling exit() if PL_OPTION_QUIET is set. --- src/plargs.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/plargs.c b/src/plargs.c index cbacadf..4b0e405 100644 --- a/src/plargs.c +++ b/src/pla

[Plplot-devel] plsetopt( "-h", NULL ) exits process

2010-03-09 Thread David MacMahon
plsetopt("-h",NULL) exits the process and doesn't even show any help. The -v option does the same thing (i.e. exits the process without any output). I think this could be fixed relatively easily and without any negative impact by changing opt_h and opt_v (in src/ plargs.c) to return 0 (ins

[Plplot-devel] plparseopts return value

2010-03-09 Thread David MacMahon
I think plparseopts returns -1 (i.e. an error) if PL_MODE_SKIP is given and the last argument is unknown (i.e. skipped). If the same command line arguments are reordered such that the last argument is known (i.e. not skipped), plparseopts will return 0 (i.e. no error). I think this can be

Re: [Plplot-devel] [PATCH] Plot gradient visual cue only if DEBUG is defined

2010-03-08 Thread David MacMahon
OK, sorry I didn't realize it was still being developed/debugged. Dave On Mar 8, 2010, at 7:54 , Alan W. Irwin wrote: > Hi Dave: > > I am not going to apply your patch to remove the debugging line > (which shows > the direction of the gradient) from the plgradient implementation > because >

[Plplot-devel] [PATCH] Plot gradient visual cue only if DEBUG is defined

2010-03-08 Thread David MacMahon
--- src/plgradient.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/plgradient.c b/src/plgradient.c index d864d0a..57ab581 100644 --- a/src/plgradient.c +++ b/src/plgradient.c @@ -145,9 +145,11 @@ c_plgradient( PLINT n, PLFLT *x, PLFLT *y, PLFLT angle ) }

Re: [Plplot-devel] plimagefr and pltr

2010-03-06 Thread David MacMahon
Hi, Hez, On Mar 6, 2010, at 11:12 , Hezekiah M. Carty wrote: > How does this sound? Much better, thanks! The key thing, IMHO, is to make clear the distinction between integer "input coordinates" and integer "idata indices" (with the former exceeding the latter by one in both dimensions).

[Plplot-devel] [PATCH] Fix cmake warning about mismatched if/endif.

2010-03-05 Thread David MacMahon
--- examples/CMakeLists.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 899795a..b7eddd3 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -771,7 +771,7 @@ if(BUILD_TEST) list(APPEND ta

Re: [Plplot-devel] [PATCH] Fix plfimage function

2010-03-05 Thread David MacMahon
On Mar 4, 2010, at 21:46 , David MacMahon wrote: > I'm looking into some possible conflicts between system tcl/tk and > macports tcl/tk... Sure enough. I was inadvertently using a mix of system (Mac OS X 10.4) tcl (8.4) and MacPorts tcl (8.5). I've remedied the situation b

Re: [Plplot-devel] [PATCH] Fix plfimage function

2010-03-05 Thread David MacMahon
On Mar 5, 2010, at 8:03 , Alan W. Irwin wrote: > Thanks for that suggestion for avoiding strcat whose effect depends on > octave version. (Ugh!) To be fair, the 3.0.1 behavior was arguably a bug since it was not Matlab-compatible behavior and I think Matlab compatibility is one of Octave's g

Re: [Plplot-devel] [PATCH] Fix plfimage function

2010-03-04 Thread David MacMahon
On Mar 4, 2010, at 17:30 , Alan W. Irwin wrote: > On 2010-03-04 16:25-0800 David MacMahon wrote: > >> octave >> Missing examples: 19 >> Differing postscript output : 28 29 >> Missing stdout : >> Differing stdout

Re: [Plplot-devel] [PATCH] Fix plfimage function

2010-03-04 Thread David MacMahon
Hi, Alan, On Mar 4, 2010, at 17:30 , Alan W. Irwin wrote: > On my own Linux system I confirm the above except I get good > results for > octave example 29. Note, I have octave-3.0.1 installed I think this difference is due to the use of Octave's strcat function in examples/octave/x29c.m. I

Re: [Plplot-devel] [PATCH] Fix plfimage function

2010-03-04 Thread David MacMahon
Hi, Alan, On Mar 3, 2010, at 12:05 , Alan W. Irwin wrote: > time make -j4 -k test_noninteractive >& make_testnoninteractive.out I'm trying to run this test now, but I'm not sure what to expect nor how to interpret the results I get. It ends with an error message for me using either svn/trun

[Plplot-devel] Underscore and backslash

2010-03-04 Thread David MacMahon
I noticed that underscores and backslashes in plmtex text appear as centered dots with the xwin driver, but as underscores and backslashes with the xcairo driver. I also notice that these two characters appear as centered dots with both drivers in example 6, which uses plploin... http://p

Re: [Plplot-devel] [PATCH] Fix plfimage function

2010-03-03 Thread David MacMahon
Hi, Alan, On Mar 3, 2010, at 18:35 , Alan W. Irwin wrote: > On 2010-03-03 13:13-0800 David MacMahon wrote: > >> [...] Tonight I will rolls all of these patches into one patch >> that can be applied to svn/trunk and send it out. > > Thanks. > >> >>>

Re: [Plplot-devel] [PATCH] Fix plfimage function

2010-03-03 Thread David MacMahon
Hi, Alan, On Mar 3, 2010, at 12:05 , Alan W. Irwin wrote: > For source trees with and without the patch > > time make -j4 -k test_noninteractive >& make_testnoninteractive.out > time make -j4 -k test_interactive >& make_testinteractive.out I assume you would like, for example,... make && time m

Re: [Plplot-devel] Problem with tick marks and tight ranges

2010-03-03 Thread David MacMahon
On Mar 3, 2010, at 12:42 , Andrew Ross wrote: > It should be fixed to stop > plplot getting stuck in an infinite loop, but to be honest > if you are really trying to plot such a small range then rounding > errors are likely to occur with all the rest of the plotting code > too. Getting plots wit

[Plplot-devel] plenv and plschr oddness

2010-03-02 Thread David MacMahon
I've noticed some unexpected behavior with plschr and plenv. I modified x09c.c by adding this line... plschr(0.0, 0.5); ...immediately before the first plenv call in main (i.e. the plenv call for the "Plot using identity transform" plot). This plenv call draws the numeric labels for

[Plplot-devel] Problem with tick marks and tight ranges

2010-03-02 Thread David MacMahon
I think I've found a problem with tick marks and tight ranges. The tick marks seem to be drawn by starting at an initial "tick position" and then repeatedly incrementing the tick position by a delta value until the tick position advances out of range. If the window is setup for a tight y (o

[Plplot-devel] [PATCH] Fix plfimage function

2010-03-01 Thread David MacMahon
This fixes a parameter ordering problem in plfimage's call to the minmax operator function. --- src/plimage.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/plimage.c b/src/plimage.c index bfa5ef7..d18b5cf 100644 --- a/src/plimage.c +++ b/src/plimage.c @@ -363,7 +36

[Plplot-devel] plGraphicsIn button field

2010-03-01 Thread David MacMahon
I've been working on "porting" example 20 to Ruby. I notice when I'm dragging the crosshairs around to select a rectangle that sometimes the button field of the plGraphicsIn structure will get set to a large value (e.g. 0x7b8000). Although I haven't seen this behavior with x20c, I think t

Re: [Plplot-devel] Ruby bindings

2010-02-28 Thread David MacMahon
Hi, Andrew, Thanks for your comments. Ideally I'd like somehow to support both a Ruby-centric installation (i.e the .gem file) as well as non-Ruby- centric installations (e.g. apt/yum/port/whatever). Alan's analysis (showing that most people install plplot binaries via a package manager)

Re: [Plplot-devel] Ruby bindings

2010-02-27 Thread David MacMahon
On Feb 27, 2010, at 14:47 , Alan W. Irwin wrote: > On 2010-02-26 14:09-0800 David MacMahon wrote: > >> As you all know by now, I'm working on Ruby bindings to PLplot. I am >> (still) almost ready for a first release. There's always "a few more >> t

[Plplot-devel] plimagefr and pltr

2010-02-26 Thread David MacMahon
As you all know by now, I'm working on Ruby bindings to PLplot. I am (still) almost ready for a first release. There's always "a few more things"! :-) I am currently working on plimagefr support, including pltr support. I have noticed that the documentation for plimagrfr's pltr parameter

Re: [Plplot-devel] -dev tk fails to work for install tree

2010-02-26 Thread David MacMahon
Nice work, Alan! Bisection is clearly useful regardless of the tool used to drive it! On Feb 26, 2010, at 13:34 , Alan W. Irwin wrote: > Thus, a range of 1024 revisions only requires 10 updates to find > which revision fails by bisection. Just to be explicit, it's not just (only!) 10 updates,

Re: [Plplot-devel] -dev tk fails to work for install tree

2010-02-26 Thread David MacMahon
On Feb 26, 2010, at 11:19 , Alan W. Irwin wrote: > (1) Update my local svn repository for PLplot. I can't resist pointing out that git always has a local repository! It can't really be called a local copy of *the* repository, but it is local. :-) > (2) Write a script to do the steps mentio

Re: [Plplot-devel] -dev tk fails to work for install tree

2010-02-26 Thread David MacMahon
On Feb 26, 2010, at 9:27 , Alan W. Irwin wrote: > On 2010-02-25 15:13-0800 Alan W. Irwin wrote: > >> Want to give git-bisect a try for this case? If so, here are the >> instructions for reproducing the error. > > All good ideas are copied. From a google search for svn bisect, it > appears > t

Re: [Plplot-devel] -dev tk fails to work for install tree

2010-02-25 Thread David MacMahon
Hi, Alan, On Feb 25, 2010, at 13:47 , Alan W. Irwin wrote: > I am > not sure whether it is a regression caused by the embedded blank > fix or a > regression caused by a previous -dev tk fix, but -dev tk (as run by > the > test_interactive target) used to work fine for the CMake-based > buil

[Plplot-devel] [PATCH] Add plfimage function

2010-02-25 Thread David MacMahon
This should have been included in the the earlier "Support arbitrary storage of 2D user data" patch (or the "Make plgriddata call plfgriddata" patch). --- include/plplot.h | 10 ++ src/plimage.c| 33 +++-- 2 files changed, 33 insertions(+), 10 deletions

Re: [Plplot-devel] [PATCH] Support arbitrary storage of 2D user data

2010-02-25 Thread David MacMahon
On Feb 22, 2010, at 10:37 , David MacMahon wrote: > On Feb 22, 2010, at 6:42 , Andrew Ross wrote: > >> I would like to have a thorough comparison of the time difference. >> This should include a "large data" case as well where timings >> might be >> mor

Re: [Plplot-devel] x23c -dev xwin

2010-02-23 Thread David MacMahon
Thanks, Alan, On Feb 23, 2010, at 14:48 , Alan W. Irwin wrote: > No. -dev xwin is pure Hershey (just like all our traditional > devices). > > To explain further, we had a first generation of unicode font > support via > plfreetype.c (e.g., gd.c which is now deprecated because of the > limi

Re: [Plplot-devel] x23c -dev xwin

2010-02-23 Thread David MacMahon
Hi, Alan, On Feb 23, 2010, at 13:07 , Alan W. Irwin wrote: > does the example proceed happily for all pages > but with "0x???]" replacing the glyph that is shown for xcairo? Sorry for the vagueness in my report. Yes, this latter description is exactly what happens. It proceeds happily for al

[Plplot-devel] x23c -dev xwin

2010-02-23 Thread David MacMahon
I thought "x23c -dev xwin" used to work for me, but now it appears to be broken. All pages work fine for "-dev xcairo". I am using a freetype-enabled libplplot build, but the xwin driver only works for the first page (and even then the title text that appears is "0x10>PLplot Example 23 -

[Plplot-devel] PLFLT_MAX and float.h

2010-02-22 Thread David MacMahon
I notice plplot.h defines PLFLT_MAX to be either FLT_MAX or DBL_MAX depending on whether PL_DOUBLE (or DOUBLE) is defined. It does not, however, include float.h which is where (at least on my Mac) FLT_MAX and DBL_MAX appear to be defined. For now, I will just add "#include " to my source fi

[Plplot-devel] [PATCH] Make plgriddata call plfgriddata

2010-02-22 Thread David MacMahon
Fixes an oversight that had left plgriddata with an empty body! =8-O --- include/plplot.h |5 + src/plgridd.c|1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/plplot.h b/include/plplot.h index 5462437..16f7a99 100644 --- a/include/plplot.h +++ b/include/

  1   2   >