bugGNU Octave - Bugs: bug #49003, tikz does not work with gnuplot...

 
 

bug #49003: tikz does not work with gnuplot graphics toolkit

Submitter:  Tatsuro MATSUOKA <tmacchant>
Submitted:  Mon 05 Sep 2016 12:09:24 AM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Tatsuro MATSUOKA Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 15 Sep 2016 12:26:10 AM UTC, comment #8: 

I have pulled and update the development source and confirmed that the patch has been attached and fixed the problem.

>Can this bug report be closed now since the remaining issues are upstream in gnuplot?


Yes this report can be closed.

Thanks for Daniel and Rik.

Tatsuro MATSUOKA <tmacchant>
Wed 14 Sep 2016 03:41:05 PM UTC, comment #7: 

I pushed Dan's cset from comment #4 here (http://hg.savannah.gnu.org/hgweb/octave/rev/a7d6c66e91e4).

Can this bug report be closed now since the remaining issues are upstream in gnuplot?

Rik <rik5>
Group administrator
Wed 14 Sep 2016 03:22:00 AM UTC, comment #6: 

Related to comment #1 and comment #5.

I have created a bug ticket for "set termoption" for tikz terminal.
https://sourceforge.net/p/gnuplot/bugs/1856/


However, the option for tikz terminal will not to be re-implemented.
(See also https://sourceforge.net/p/gnuplot/bugs/1828/)

Therefore I closed that ticket.
Treatment should be done on octave side so that please apply the patch by Daniel on comment #4

Tatsuro MATSUOKA <tmacchant>
Tue 13 Sep 2016 08:05:37 AM UTC, comment #5: 

Daniel

Thank you for taking time for this matter.

Changeset on comment #4 works for me.

I hope that this patch attached to 4.2.0 dev tree.

For bug of gnuplot 5 in your comment (comment #2),
I will report in gnuplot bug ticket.

Tatsuro MATSUOKA <tmacchant>
Tue 13 Sep 2016 07:01:36 AM UTC, comment #4: 

In the _gnuplot_has_feature_.m file is "dashtype" feature for greater than or equal to version 5.0.  So, hopefully, the gnuplot_toolkit scripts know enough to use the dashtype route, it's just that it hasn't realized "termoption dashed" isn't needed if the dashtype is present.  So let me simplify the changeset, since "dashtype" and "lost_termoption_dashed" are really synonyms.  Try the attached.


(file #38498)

Dan Sebald <sebald>
Tue 13 Sep 2016 06:40:22 AM UTC, comment #3: 

How about a changeset like the attached?  When I have gnuplot 5.x active, the dashed lines still seem to function properly in Octave:


octave:1> graphics_toolkit gnuplot;
octave:2> plot (rand(10));
octave:3> print -dtikzstandalone test.tex
octave:4> plot (rand(10), '--');
octave:5> print -dtikzstandalone test.tex
octave:6> exit


The result of "pdflatex test.tex" at the terminal window for the second case is attached as well.

(file #38496, file #38497)

Dan Sebald <sebald>
Tue 13 Sep 2016 05:34:54 AM UTC, comment #2: 

It's a very busy week here, but I've verified the problem you've found.  I think this may be a gnuplot bug, at least if I'm understanding correctly.  Here's the help from gnuplot:


gnuplot> help set termoption
 The `set termoption` command allows you to change the behaviour of the
 current terminal without requiring a new `set terminal` command. Only one
 option can be changed per command, and only a small number of options can
 be changed this way. Currently the only options accepted are

      set termoption {no}enhanced
      set termoption font "<fontname>{,<fontsize>}"
      set termoption fontscale <scale>
      set termoption {linewidth <lw>}{lw <lw>}
      set termoption {dashed|solid}         # not generally relevant in verion 5


From what I recall, gnuplot version 5 introduced better dash-pattern control so that the terminal wasn't left with the task of making dashed or solid patters.  Does that sound correct?  All of the other terminals I've selected in gnuplot accept the "set termoption dashed", but tikz gives a warning:


gnuplot> set term qt
Terminal type set to 'qt'
Options are '0 font "Sans,9"'
gnuplot> set termoption dashed
gnuplot> set term tikz
Terminal type set to 'tikz'
Options are 'latex nopreamble color nostandalone nogparrows notikzarrows nogppoints picenvironment nooriginreset bitmap rgbimage noclip notightboundingbox noexternalimages '
gnuplot> set termoption dashed
                              ^
         warning: unknown option `dashed'.


This is only a warning though.  I still get the file test.tex as an output.  I'm able to compile test.tex with "pdflatex" (see attached file).  Trying to process test.tex with "latex" compiles but cannot create a valid PS file from the DVI file--the file only has the white background.



(file #38495)

Dan Sebald <sebald>
Mon 12 Sep 2016 09:32:53 AM UTC, comment #1: 

Daniel
If you have time, please see this bug.

Tatsuro MATSUOKA <tmacchant>
Mon 05 Sep 2016 12:09:24 AM UTC, original submission:  


graphics_toolkit gnuplot;
plot (rand(10));
print -dtikzstandalone test.tex


The above gives


multiplot> set termoption dashed
                                ^
           line 0: warning: unknown option `dashed'.


In "help print" (also manual) on development version, there described


     'tikz'
     'tikzstandalone'
          Generate a LaTeX file using PGF/TikZ.  For the FLTK toolkit
          the result is PGF.  The 'tikzstandalone' device produces a
          LaTeX document which includes the TikZ file ('tikzstandalone'
          is only available for the Gnuplot graphics toolkit).


The functionality written in the help (also manual) does not work.

The bug preferably is fixed before 4.2 release.

Tatsuro MATSUOKA <tmacchant>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #38497:  test.pdf added by sebald (5KiB - application/force-download)
file #38495:  test.pdf added by sebald (5KiB - application/force-download)

 

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 tmacchant
  • -email is unavailable- added by tmacchant
  • -email is unavailable- added by tmacchant
  • -email is unavailable- added by sebald (Updated the item)
  • -email is unavailable- added by tmacchant
  • -email is unavailable- added by tmacchant (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 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-15 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2016-09-14 rik5 StatusNone Ready For Test
    2016-09-14 tmacchant Carbon-Copy- Added mike miller <mtmiller@ieee.org>
        Carbon-Copy- Added john w. eaton <jwe@gnu.org>
        Carbon-Copy- Added rik <rik@octave.org>
    2016-09-13 sebald Attached File- Added octave-gnuplot_termoption_dashed_bug49003-djs2016sep14.patch, #38498
    2016-09-13 sebald Attached File- Added octave-gnuplot_termoption_dashed_bug49003-djs2016sep13.patch, #38496
        Attached File- Added test.pdf, #38497
    2016-09-13 sebald Attached File- Added test.pdf, #38495
    2016-09-12 tmacchant Carbon-Copy- Added dan sebald <daniel.sebald@ieee.org>

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code