[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: print produces strange results (4.0.0-rc2, Win7)
From: |
Martin Kunz |
Subject: |
Re: print produces strange results (4.0.0-rc2, Win7) |
Date: |
Mon, 13 Apr 2015 15:30:34 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
Am 11.04.2015 um 03:31 schrieb Tatsuro MATSUOKA:
> ----- Original Message -----
>
>> From: tmacchant
>> To: help-octave
>> Cc:
>> Date: 2015/4/10, Fri 23:16
>> Subject: Re: print produces strange results (4.0.0-rc2, Win7)
>>
>> **********************************************
>> 1) Try using graphics_backend("gnuplot") and cairo based
>> terminals ("wxr", "qt", "pdfcairo",
>> "pngcairo").
>>
>> 2) Try using UTF characters directly (i.e. instead of ylabel
>> ("\\Omega")
>> use ylabel("Ω"))
>>
>> Hope that helps.
>>
>> Dmitri
>> ***********************************************
>>
>> The gnuplot bundled with the current octave binary does not support cairo
>> based nor qt terminal. To use cairo based terminal, you should download and
>> install the gnuplot from the gnuplot official web site. You should set
>> gnuplot_binary that points to the full path to which the gnuplot from
>> official web site is installed. For current octave. I recommend to use
>> version 4.6.6 but not 5.0.0.
>>
>
> The gnuplot official web site:
> http://www.gnuplot.info/
>
>  Version 4.6 Release
>   Download from SourceForge
>
> Download 32 bit or 64 bit version according to your PC environment.
>
>
> Install binary where you want. I strongly recommend to install it to the
> folder whose full-path does not have any white space.
>
> Ex.
> C:\Program Files\gnuplot : not recommended
> C:\Programs\gnuplot : recommended
>
> Test:
> >> gnuplot_binary C:\Programs\gnuplot\bin\gnuplot.exe
> >> setenv GNUTERM wxt
> >> plot ([0:10],[0:10].^2)
>
> If you want to the above default, add the below in the end of
> C:\octave\Octave-4.0.0-rc2\share\octave\4.0.0-rc2\m\startup\octaverc
>
>
> gnuplot_binary C:\Programs\gnuplot\bin\gnuplot.exe
>
> setenv GNUTERM wxt
>
>
> Hope this helps.
>
> Tatsuro
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave
Dear Dmitri and Tatsuro,
Thanks for your suggestions. I have set up a separate Gnuplot
installation as the graphics toolkit for Octave as you suggested:
>> gnuplot_binary
ans = D:\Software\gnuplot\bin\gnuplot.exe
When I ran my test script, I got a message that the epstool binary is
not installed and some output formats would be not available. So I
downloaded epstool-3.08-win32.zip from
http://fossies.org/linux/misc/ghost/ghostgum/epstool-3.08-win32.zip/ and
added the bin-folder to my path system variable.
Furthermore, I have switched to Octave 4.0.0-rc3 this morning and
reinstalled Ghostscript 9.16 64bit.
When I run the attached script, the result is worse than ever before. I
get the following output:
>> plotTest
ans = 4.0.0-rc3
ans = gnuplot
Error: /undefined in -1.#QNAN
Operand stack:
--nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push
1951 1 3 %oparray_pop 1950 1 3 %oparray_pop
--nostringval-- 1934 1 3 %oparray_pop 1820 1 3
%oparray_pop --nostringval-- %errorexec_pop .runexec2
--nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval--
Dictionary stack:
--dict:1197/1684(ro)(G)-- --dict:0/20(G)-- --dict:83/200(L)--
--dict:39/64(L)--
Current allocation mode is local
GPL Ghostscript 9.16: Unrecoverable error, exit code 1
Error: /undefined in -1.#QNAN
Operand stack:
--nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push
1951 1 3 %oparray_pop 1950 1 3 %oparray_pop
--nostringval-- 1934 1 3 %oparray_pop 1820 1 3
%oparray_pop --nostringval-- %errorexec_pop .runexec2
--nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval--
Dictionary stack:
--dict:1198/1684(ro)(G)-- --dict:0/20(G)-- --dict:83/200(L)--
--dict:39/64(L)--
Current allocation mode is local
GPL Ghostscript 9.16: Unrecoverable error, exit code 1
>> plotTest
ans = 4.0.0-rc3
ans = gnuplot
Error: /undefined in -1.#QNAN
Operand stack:
--nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push
1951 1 3 %oparray_pop 1950 1 3 %oparray_pop
--nostringval-- 1934 1 3 %oparray_pop 1820 1 3
%oparray_pop --nostringval-- %errorexec_pop .runexec2
--nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval--
Dictionary stack:
--dict:1197/1684(ro)(G)-- --dict:0/20(G)-- --dict:83/200(L)--
--dict:39/64(L)--
Current allocation mode is local
GPL Ghostscript 9.16: Unrecoverable error, exit code 1
Error: /undefined in -1.#QNAN
Operand stack:
--nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push
1951 1 3 %oparray_pop 1950 1 3 %oparray_pop
--nostringval-- 1934 1 3 %oparray_pop 1820 1 3
%oparray_pop --nostringval-- %errorexec_pop .runexec2
--nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval--
Dictionary stack:
--dict:1198/1684(ro)(G)-- --dict:0/20(G)-- --dict:83/200(L)--
--dict:39/64(L)--
Current allocation mode is local
GPL Ghostscript 9.16: Unrecoverable error, exit code 1
The resulting files and screenshots can be accessed via
https://oc.bgc.mpg.de/public.php?service=files&t=62be247e133afe4918954b2449c1ac2f
(The list moderator asked me not to attach them because of their size.)
f1.png is not being created at all. From the figure window it seems that
graphics_toolkit is just ignored and Octave still uses Qt Handles. They
look exactly like before, only the ylabel in figure 2 consists of
strange symbols now. The files look a bit different now, but not much
better.
Something seems very wrong here...
plotTest.m
Description: Text document
- print produces strange results (4.0.0-rc2, Win7), Martin Kunz, 2015/04/09
- Re: print produces strange results (4.0.0-rc2, Win7), Dmitri A. Sergatskov, 2015/04/09
- Re: print produces strange results (4.0.0-rc2, Win7), tmacchant, 2015/04/10
- Re: print produces strange results (4.0.0-rc2, Win7), Tatsuro MATSUOKA, 2015/04/10
- Re: print produces strange results (4.0.0-rc2, Win7),
Martin Kunz <=
- Re: print produces strange results (4.0.0-rc2, Win7), Dmitri A. Sergatskov, 2015/04/13
- Re: print produces strange results (4.0.0-rc2, Win7), Martin Kunz, 2015/04/13
- Re: print produces strange results (4.0.0-rc2, Win7), Doug Stewart, 2015/04/13
- Re: print produces strange results (4.0.0-rc2, Win7), Martin Kunz, 2015/04/13
- Re: print produces strange results (4.0.0-rc2, Win7), Doug Stewart, 2015/04/13
- Re: print produces strange results (4.0.0-rc2, Win7), Dmitri A. Sergatskov, 2015/04/13
- Re: print produces strange results (4.0.0-rc2, Win7), Martin Kunz, 2015/04/14
- Re: print produces strange results (4.0.0-rc2, Win7), Dmitri A. Sergatskov, 2015/04/13
- Re: print produces strange results (4.0.0-rc2, Win7), Martin Kunz, 2015/04/14
- Re: print produces strange results (4.0.0-rc2, Win7), Dmitri A. Sergatskov, 2015/04/13