bugGNU Octave - Bugs: bug #42947, gnuplot doesn't color tick marks...

 
 

bug #42947: gnuplot doesn't color tick marks with axis color property

Submitted by:  Rik <rik5>
Submitted on:  Fri 08 Aug 2014 04:26:22 PM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Sat 02 Jul 2016 02:12:32 AM UTC, comment #17:

Retagging as "fixed". Can this now be closed?

Lachlan Andrew <lachlan>
Project Member
Sun 28 Feb 2016 02:20:46 AM UTC, comment #16:

@Ben: Works fine now. Thanks.

Rik <rik5>
Project Administrator
Sun 28 Feb 2016 01:13:39 AM UTC, comment #15:

Rik,

I pushed a fix. Please verify it works for you with gnuplot 4.6

http://hg.savannah.gnu.org/hgweb/octave/rev/df5922f77193

Ben Abbott <bpabbott>
Project Member
Sat 27 Feb 2016 01:33:10 PM UTC, comment #14:

Ugggh! I had worked on this patch prior to realizing that "dashtype" was new syntax. A feature check for dashtype needs to be added. That will be useful for implementing consistent dashtypes across all gnuplot terminals later.

Ben Abbott <bpabbott>
Project Member
Sat 27 Feb 2016 05:50:05 AM UTC, comment #13:

Just an FYI, I have no problems with gnuplot 5.0, but if I run with gnuplot 4.6.6 I get the following errors

Rik <rik5>
Project Administrator
Sat 27 Feb 2016 03:12:13 AM UTC, comment #12:

@Ben: I applied your patch here (http://hg.savannah.gnu.org/hgweb/octave/rev/ad07ed235053).

I re-titled the bug report to mention the remaining issue about tick marks not being colored correctly.

Rik <rik5>
Project Administrator
Sat 27 Feb 2016 01:55:29 AM UTC, comment #11:

Opps. I looked at the wrong patch. The clean up is rather obvious (at least the commented lines). Please take a quick look at the attached one.

(file #36483)

Ben Abbott <bpabbott>
Project Member
Sat 27 Feb 2016 12:53:05 AM UTC, comment #10:

It looks like you simply commented out lines that were unneeded, rather than deleting them. That left a whole lot of fputs and fprintf statements with '#' in front of them.

The second item was to check that all statements end in ';' so that output is suppressed. It doesn't actually matter for fprintf, but its nicer to have it conform with the rest of the code.

Rik <rik5>
Project Administrator
Sat 27 Feb 2016 12:44:25 AM UTC, comment #9:

Ok. Regarding the clean up, what caught your attention?

Ben Abbott <bpabbott>
Project Member
Fri 26 Feb 2016 10:08:09 PM UTC, comment #8:

@Ben: Apparently a few days stretch in to two months. I checked the patch and it works as far as it goes. That is, it colors the axis of 2-D plots, but tick marks are still uncolored and 3-D plots are also uncolored.

Do you want to clean it up and apply it?

Rik <rik5>
Project Administrator
Tue 29 Dec 2015 04:11:25 PM UTC, comment #7:

@Ben: I'm busy today, but I'll try to review within the next couple of days.

Rik <rik5>
Project Administrator
Tue 29 Dec 2015 12:37:21 AM UTC, comment #6:

Opps, attaching the correct changeset

(file #35882)

Ben Abbott <bpabbott>
Project Member
Tue 29 Dec 2015 12:35:45 AM UTC, comment #5:

I found a bug in the changeset. I'm attached a modified changeset and a modified demo.

(file #35880, file #35881)

Ben Abbott <bpabbott>
Project Member
Mon 28 Dec 2015 07:16:54 PM UTC, comment #4:

I'm attaching a proposal for 2D plots. This changeset does not color the tic-marks, but does color the axes. I'm also attaching a demo script.

@Rik, do you think the proposed changeset is acceptable?

(file #35876, file #35877)

Ben Abbott <bpabbott>
Project Member
Mon 28 Dec 2015 01:39:05 AM UTC, comment #3:

I found a clumsy solution which might work if _gnuplot_draw_axes_ isn't making use of "set arrow N ...", or if the arrow indexing is handled properly. Below is a simple gnuplot scrip that colors the axes for 2D plot.

This example creates a blue y-axis, a red y2-axis, a green x-axis, and a black x2-axis.

Ben Abbott <bpabbott>
Project Member
Sun 27 Dec 2015 11:11:17 PM UTC, comment #2:

For the case of the axes being drawn along (x,0,0), (0,y,0) or (0,0,z) the gnuplot command "set *zeroaxes" can be used.

http://www.bersch.net/gnuplot-doc/set-show.html#set-zeroaxis

Unfortunately, I don't see an alternative for doing the same for the border of a plot.

Ben Abbott <bpabbott>
Project Member
Sat 26 Dec 2015 01:20:20 AM UTC, comment #1:

I tried changing the plot box border color using gnuplot. I didn't get a result that makes sense to me. I'm attaching the gnuplot script and the png it produced.

Short story, it appears that only one color may be used for the plot box border.

Perhaps this bug should have a status of "Won't Fix"?

(file #35857, file #35858)

Ben Abbott <bpabbott>
Project Member
Fri 08 Aug 2014 04:26:22 PM UTC, original submission:

The axis line, tick marks, and tick labels should all be controlled by the axis property 'xcolor', 'ycolor', or 'zcolor'.

With the gnuplot toolkit, only the ticklabels have their color changed.

Sample code:

Rik <rik5>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #36483:  changeset.patch added by bpabbott (5KiB - application/octet-stream)
file #35882:  changeset.patch added by bpabbott (6KiB - application/octet-stream)
file #35881:  demo_42947.m added by bpabbott (754B - application/octet-stream)
file #35857:  42947.gp added by bpabbott (504B - application/octet-stream)
file #35858:  42947.png added by bpabbott (31KiB - image/png)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by bpabbott (Updated the item)
  • -unavailable- added by avinoam
  • -unavailable- added by rik5 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 17 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 05 Oct 2017 11:55:50 PM UTCrik5Dependencies-=>bugs #52169 is dependent
    Sat 02 Jul 2016 02:56:58 AM UTCrik5Open/ClosedOpen=>Closed
    Sat 02 Jul 2016 02:12:32 AM UTClachlanStatusPatch Submitted=>Fixed
    Sat 27 Feb 2016 03:12:13 AM UTCrik5Summarygnuplot doesn\'t color axis line and tick marks with axis color property=>gnuplot doesn't color tick marks with axis color property
    Sat 27 Feb 2016 01:55:29 AM UTCbpabbottAttached File-=>Added changeset.patch, #36483
    Fri 26 Feb 2016 10:08:09 PM UTCrik5StatusNone=>Patch Submitted
    Tue 29 Dec 2015 12:37:21 AM UTCbpabbottAttached File-=>Added changeset.patch, #35882
    Tue 29 Dec 2015 12:36:04 AM UTCbpabbottAttached File#35877=>Removed
    Tue 29 Dec 2015 12:36:01 AM UTCbpabbottAttached File#35876=>Removed
    Tue 29 Dec 2015 12:35:53 AM UTCbpabbottAttached File#35880=>Removed
    Tue 29 Dec 2015 12:35:45 AM UTCbpabbottAttached File-=>Added 42947-border2.diff, #35880
      Attached File-=>Added demo_42947.m, #35881
    Mon 28 Dec 2015 07:16:54 PM UTCbpabbottAttached File-=>Added changeset.patch, #35876
      Attached File-=>Added demo_42947.m, #35877
    Sat 26 Dec 2015 01:20:20 AM UTCbpabbottAttached File-=>Added 42947.gp, #35857
      Attached File-=>Added 42947.png, #35858
    Fri 14 Nov 2014 12:05:44 PM UTCavinoamCarbon-Copy-=>Added avinoam

    Back to the top


    Powered by Savane 3.1-cleanup1