bugGNU Octave - Bugs: bug #37273, print("-color",...

 
 

bug #37273: print("-color", "-textspecial", "-dfig","filename.fig") does not produce color or special text.

Submitter:  Aqeel Akber <aeqel>
Submitted:  Wed 05 Sep 2012 12:56:48 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Aeqel Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 20 Nov 2016 06:05:14 PM UTC, comment #8: 

If we need this feature--I'm not convinced many people use the .fig format anymore--then it probably needs to be re-implemented.  The functionality that does this is now associated with the "standalone" keyword.  Perhaps implementing '-figstandalone' in print.m would make this work.

Rik <rik5>
Group administrator
Sat 19 Nov 2016 10:36:44 PM UTC, comment #7: 

This behavior is still present in Octave 4.2.0.

It behaves the same as reported in comment #6. (qt graphics working the same as fltk).

Hartmut <hardy>
Thu 04 Jun 2015 02:41:39 AM UTC, comment #6: 

In the current development version of Octave, I observe the following with regards to this bug:

  • fig output with gnuplot appears to not work very well for me, the ps file obtained by fig2dev on the .fig file is rotated and all black as described in this report. I have no idea if the line plot is color or not underneath the black fill.


  • fig output with FLTK has color, but not TeX markup (as expected with any output from FLTK)


Retitling and updating status to be specific to gnuplot.

I have not verified the workaround suggested in comment #5 to hand-edit the fig file.

Mike Miller <mtmiller>
Group Member
Tue 03 Sep 2013 05:17:05 AM UTC, comment #5: 

I have found a workaround for this issue using the drawnow command.

Using the command:
drawnow("fig color textspecial","filename.fig",false,"/dev/null")

However this still produces a fig file which is completely black, but following the solution to that bug listed here: https://mailman.cae.wisc.edu/pipermail/help-octave/2012-September/053818.html

Opening filename.fig in a text editor you can safely delete the the poly lines (lines starting with 2) which have final property value of 5 as well as the corresponding line underneath it. That is, the first 4 lines after the colour definitions of the file.

You will now a colourful, special text, visible xfig plot.

The print command is still broken. It doesn't seem to pass color or special text flags but this is a very easy workaround.

Aqeel Akber <aeqel>
Tue 11 Sep 2012 02:52:07 AM UTC, comment #4: 

I have attached a script test_plot.m that produces the figure test_plot.fig which demonstrates this problem.

I have also attached More_test_cases.tar.gz which is a collection of real data and a script that produces 3 plots outputted as .fig files. This script requires the PHYSICAL CONSTANTS package.

The script in More_test_cases.tar.gz was ran in Octave 3.2.4 and produced no issues however when running in Octave 3.6.3 the figures do not have special text or colour.

ALSO, another bug is noticeable; the plot grotriandiagram36.fig is completely black. I asked on the mail-list about this problem (which also occurred in Octave 3.6.2) and got this reply which I believe could work but I don't have the skill to apply it with ease:
http://octave.1599824.n4.nabble.com/print-dfig-produces-completely-black-plot-td4643691.html

(file #26529, file #26530, file #26531)

Aqeel Akber <aeqel>
Wed 05 Sep 2012 06:07:19 PM UTC, comment #3: 

I am also seeing no color in .fig output.
I attached the script I used to test if the color half of the bug happens on my system.

I don't know if this is also a test case for "-textspecial" but the subscript characters that should be produced by this example are showing up as "_1" and "_2".

They are showing up as subscripts when using .png output.

(file #26479, file #26480)

Andrew Hout <arclance>
Wed 05 Sep 2012 03:30:41 PM UTC, comment #2: 

Could you post a test case that we can use to see the problem?

Rik <rik5>
Group administrator
Wed 05 Sep 2012 01:57:31 PM UTC, comment #1: 

I should clarify this is actually in Octave 3.6.3 which was released today.

Aqeel Akber <aeqel>
Wed 05 Sep 2012 12:56:48 PM UTC, original submission:  

Printing plots with the code:\


print("-color", "-textspecial", "-dfig","filename.fig")


Does not produce special text to be interpreted in LaTeX nor does it produce colour. Worked fine in Octave 3.2.4, in Octave 3.6.2 printing with the above code produced only a box.

Gnuplot 4.6.0 is installed.
Debian Linux.

Aqeel Akber <aeqel>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #26536:  octave_errorbar_bug.pdf added by aeqel (95KiB - application/pdf - From #37328 but shows how printing in 3.2.4 works well compared to 3.6.3.)
file #26529:  test_plot.m added by aeqel (309B - text/x-objcsrc - More_test_cases.tar.gz is a script that produces plots from real data.)
file #26530:  More_test_cases.tar.gz added by aeqel (10KiB - application/x-gzip - More_test_cases.tar.gz is a script that produces plots from real data.)
file #26531:  test_plot.fig added by aeqel (20KiB - image/x-xfig - More_test_cases.tar.gz is a script that produces plots from real data.)
file #26479:  figbug_example.m added by arclance (342B - text/x-objcsrc - Simple Test Case)
file #26480:  dpddpde.m added by arclance (574B - text/x-objcsrc - Simple Test Case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by arclance (Updated the item)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by aeqel (Submitted the item)
  • -email is unavailable- added by aeqel
  •  

    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 14 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-04 mtmiller CategoryPlotting Plotting with gnuplot
        Priority5 - Normal 3 - Low
        StatusNeed Info Confirmed
        Release3.6.2 dev
        Operating SystemGNU/Linux Any
    2012-09-11 aeqel Attached File- Added octave_errorbar_bug.pdf, #26536
    2012-09-11 aeqel Attached File- Added test_plot.m, #26529
        Attached File- Added More_test_cases.tar.gz, #26530
        Attached File- Added test_plot.fig, #26531
    2012-09-05 arclance Attached File- Added figbug_example.m, #26479
        Attached File- Added dpddpde.m, #26480
    2012-09-05 rik5 StatusNone Need Info
        Releasedev 3.6.2
    2012-09-05 aeqel Carbon-Copy- Added aeqel

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code