Menu

#1726 user specified dashtype is ignored by AquaTerm

None
closed-accepted
nobody
2016-02-04
2015-12-29
Anonymous
No

Below is a simple test that demonstrates the 4 default dashtypes vailable for AquaTerm.

:::gnuplot
set term aqua enhanced dashed
plot sin(x) dt 1, cos(x) dt 2, sin(x/2) dt 3, cos(x/2) dt4

However, if I define my own dashtypes ...

:::gnuplot
# equivalent to Matlab '-'
set dashtype 5 solid
# equivalent to Matlab ':'
set dashtype 6 (2,6)
# equivalent to Matlab '-.'
set dashtype 7 (16,8,2,8)
# equivalent to Matlab '--'
set dashtype 8 (16,16)
plot sin(x) dt 1, cos(x) dt 2, sin(x/2) dt 3, cos(x/2) dt 4

... all the lines are solid.
I've attached snap shots of the AquatTerm windows for each plot command.
My AquaTerm version is 1.1.1.

2 Attachments

Discussion

  • Ben Abbott

    Ben Abbott - 2015-12-29

    Opps. I neglected to login before entering the ticket and also managed to goof-up the formatting of the code.

     
  • Ethan Merritt

    Ethan Merritt - 2015-12-29

    Is anyone maintaining aquaterm? It split off into a separate project from gnuplot about four years ago. The most recent version showing on SourceForge is 1.1.1 from Aug 2013. We can't do much about supporting new gnuplot features from the gnuplot end if the external aquaterm code doesn't provide the necessary primitives. To me it seems more fruitful to work on smoothing out any remaining glitches that might dissuade people from using qt as the default terminal for OSX.

     
  • Ben Abbott

    Ben Abbott - 2015-12-30

    Ethan, I found some comments from the AquaTerm developers which indicated dashed lines weren't supported, but I also see that dashed lines are supported when using the default dashtypes provided by gnuplot (and running the "test" command). I assume some clumsy trickery was used to support dashed lines with gnuplot and that the necessary primatives needed to support variable length dashes and spaces are not available?

    In any event, you've made a pragmatic suggestion that will resolve my problem. Although I prefer to look of AquaTerm, I'll make it a habit to build gnuplot with Qt support included.

     
  • Ethan Merritt

    Ethan Merritt - 2015-12-30

    Hmm. "primitives" was probably the wrong word. What I meant was that the gnuplot terminal API was extended in version 5 to include a new driver call term->dashtype(). Since the external AquaTerm code doesn't have a corresponding underlying routine supporting this new API, the gnuplot end of the driver cannot call it. For the same reason there's no mechanism for gnuplot to invoke mousing operations, hypertext, text boxes, and so on. I don't know of any reason that the AquaTerm framework couldn't support all of these, but someone would have to put in the work to extend it.

     
  • Jun T.

    Jun T. - 2016-01-12

    Please try the attached patch, which should add the support for custom (user defined) dashtypes.
    (I did only a few tests on OS X 10.9.5/aquaterm 1.1.1)

     
  • Ben Abbott

    Ben Abbott - 2016-01-12

    I tried Jun's patch. It works for me. The image I expected is attached.

     
  • Ethan Merritt

    Ethan Merritt - 2016-01-12

    Excellent! I have applied the patch to CVS for both 5.0 and 5.1

    I am very happy to be proved wrong about the capabilities provided in the the current version of the AquaTerm framework.

     
  • Ethan Merritt

    Ethan Merritt - 2016-01-13
    • status: open --> pending-accepted
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2016-02-04
    • status: pending-accepted --> closed-accepted
     

Log in to post a comment.