bugGNU Octave - Bugs: bug #50519, Second rectangle has wrong edge...

 
 

bug #50519: Second rectangle has wrong edge line

Submitter:  ederag <ederag>
Submitted:  Sun 12 Mar 2017 01:03:48 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 15 Mar 2017 06:24:33 PM UTC, comment #7: 

Again, you are right.

The dev version was launched with run-octave, so the path was not set by my usual launcher, and the wrong gnuplot was picked up. Sorry.

With gnuplot-5.0.5 and dev version it works.
So changing the status to "fixed" and closing would be fine.

No need to backport, people stumbling on this small bug can use the workaround given in comment #3.

Thank you again for your help, and your patience.

ederag <ederag>
Tue 14 Mar 2017 08:24:23 PM UTC, comment #6: 

I see the dots when using gnuplot 4.6.6.  However the plot is clean if I use gnuplot 5.0.1.  Is that the case if you use version 5.0.5?

If so, I think we might just call this good.  Trying to figure out which cset fixed the problem and backporting it is going to be difficult because Dan Sebald did quite a lot of work on gnuplot toolkit on the dev branch.

Rik <rik5>
Group administrator
Tue 14 Mar 2017 07:44:36 PM UTC, comment #5: 

Thanks, you are right, the edge do not appear with the dev version.
But there are small dots at the corners (png printout attached).

They appear even when "edgecolor" is not given:


graphics_toolkit("gnuplot")
figure
rectangle("position", [0.2 0.2 0.5 0.4], "facecolor", "g", "linestyle", "none")
rectangle("position", [0.3 0.1 0.3 0.6], "facecolor", "y", "linestyle", "none")
axis([0 1 0 1])




ederag <ederag>
Mon 13 Mar 2017 07:45:14 PM UTC, comment #4: 

Do you have access to the development version?  It seems to have already been fixed there.

Rik <rik5>
Group administrator
Mon 13 Mar 2017 07:19:36 PM UTC, comment #3: 

With gnuplot-5.0.5, the edges are drawn as solid lines.
Quite funny: each time the following is issued,
the color of the edge changes.


rectangle("position", [0.3 0.1 0.3 0.6], "facecolor", "y", "linestyle", "none", "edgecolor", "b")


The same occurs when "edgecolor" is not given.


rectangle("position", [0.3 0.1 0.3 0.6], "facecolor", "y", "linestyle", "none")


As a workaround, set "linestyle" as "-" and "edgecolor" same as "facecolor":


rectangle("position", [0.3 0.1 0.3 0.6], "facecolor", "y", "linestyle", "-", "edgecolor", "y")




file #39998,

ederag <ederag>
Mon 13 Mar 2017 07:10:40 PM UTC, comment #2: 

It was with gnuplot 4.6.6 (screenshot and printout attached).
And you are right, the situation is different with gnuplot 5.0.


ederag <ederag>
Sun 12 Mar 2017 05:41:56 PM UTC, comment #1: 

Could you attach a screenshot so we can see the problem?

Also, what version of gnuplot are you using?

This appears to work on my setup which is gnuplot 5.0.1, octave 4.2.0, and Linux OS.

Rik <rik5>
Group administrator
Sun 12 Mar 2017 01:03:48 PM UTC, original submission:  

The second rectangle displays a dash-dotted line,
while none should show.

graphics_toolkit("gnuplot")
figure
rectangle("position", [0.2 0.2 0.5 0.4], "facecolor", "g", "linestyle", "none", "edgecolor", "b")
rectangle("position", [0.3 0.1 0.3 0.6], "facecolor", "y", "linestyle", "none", "edgecolor", "b")
axis([0 1 0 1])

This does not occur with the Qt backend.

ederag <ederag>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #40004:  wrong_edge_505_dot.png added by ederag (10KiB - image/png)
file #39998:  wrong_edge_505_print.pdf added by ederag (4KiB - application/pdf)
file #39999:  wrong_edge_505_print.png added by ederag (10KiB - image/png)
file #39996:  wrong_edge_466_print.png added by ederag (11KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by ederag (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-16 rik5 StatusWorks For Me Fixed
        Open/ClosedOpen Closed
    2017-03-14 ederag Attached File- Added wrong_edge_505_dot.png, #40004
    2017-03-13 rik5 Release4.2.0 4.2.1
    2017-03-13 ederag Attached File- Added wrong_edge_505_screen.png, #39997
        Attached File- Added wrong_edge_505_print.pdf, #39998
        Attached File- Added wrong_edge_505_print.png, #39999
    2017-03-13 ederag Attached File- Added wrong_edge_466_screen.png, #39995
        Attached File- Added wrong_edge_466_print.png, #39996
    2017-03-12 rik5 StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code