[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: .png v. .jpg printing
From: |
Ben Abbott |
Subject: |
Re: .png v. .jpg printing |
Date: |
Thu, 15 Sep 2011 17:09:57 -0400 |
On Sep 15, 2011, at 4:54 PM, Philip Hahn wrote:
> On Thu, Sep 15, 2011 at 3:18 PM, Ben Abbott <address@hidden> wrote:
>
> On Sep 15, 2011, at 4:05 PM, Philip Hahn wrote:
>
>> Greetings,
>>
>> Both files were printed in sequence from the same plot image.
>>
>> the .jpg does not respect the specified font size (18 point) but gets the
>> boxon option correct.
>> the .png does not get the boxon option correct, but does get the
>> appropriate font size (18 point).
>>
>> These were generated under Linux (latest version with Ubuntu 11.04) but I
>> get similar plots under Windows.
>>
>> I'm trying to generate plots for a paper. I need the larger font point and
>> I need the boxon property correct :) Any ideas?
>>
>> Thank you,
>>
>> philip
>
> Please provide us the actual version number for your Octave.
>
>
> Linux: 3.2.4
> Windows: (i think its 3.2.4... I'm at home its at work)
>
> Script (garbage data)
>
> % start
> i=1;
> hold on;
> A=[1:1.5:30];
> B=[1:2:10];
> Cp=[1:2:20];
> plot(A(:,1),A(:,2), 'bs', 'MarkerSize',10);
> plot(B(:,1),B(:,2), 'ks', 'MarkerSize',10);
> plot(xrval, Cp(:,i),'rd', 'MarkerSize',10);
> axis([0.,2.25]);
> if i <= 6
> set(gca,'XDir','reverse');
> legend('Wyle Test','Wyle Test','Hybrid
> RANS/LES','location','northwest');
> else
> legend('Wyle Test','Wyle Test','Hybrid
> RANS/LES','location','northwest');
> end
> set(gca,'FontSize',18);
>
> legend('boxon');
> xlabel("x/D","fontsize", 18);
> ylabel("Cp","fontsize", 18);
> title('Wyle Data Comparison, Cp \Phi =',"fontsize", 18);
> print("-dpng","test.png");
> print('-djpg','test.jpg');
> clearplot
> % end
>
> thank you,
>
> philip
>
>
> Also if you can provide a short m-file script.
>
> I tried ...
>
> plot (rand (10), rand(10), "s")
> xlabel xlabel
> ylabel ylabel
> title title
> print test.png
> print test.jpg
>
> ... and obtained the attached results using the developers sources.
>
> Ben
>
> <test.jpg><test.png>
Ok. This problem has been fixed.
It will work correctly for version 3.4.x. The windows port is being worked on.
I don't know what version is available on Ubuntu, but I recommend you do a
search using the Synaptic package manager.
Ben