[scilab-Users] Labels vanish on export to eps

Mathieu Dubois mathieu.dubois at limsi.fr
Fri Nov 26 16:05:46 CET 2010


Hello,

You can try to use Ubuntu (Debian) "alternatives" system. It is a way to 
choose between packages that provides the same functionnality (like 
sun-jre and OpenJDK). This way all your apps will use the sun-jre.

>From https://help.ubuntu.com/6.06/ubuntu/desktopguide/C/programming.html 
you can see that the command is:

sudo update-alternatives --config java


Disclaimer: I didn't try this for Java.

HTH,
Mathieu

On 11/26/2010 02:03 PM, Vishwanath Rao wrote:
>
> Thanks, this works.  I tried putting this command in 
> /usr/share/applications/scilab.desktop in the line 
> Exec=JAVA_HOME=/usr/lib/jvm/java-6-sun/ scilab so as to launch 
> directly without the console.  But it did not help.  Any pointers?
>
> thanks,
> Vishwanath.
>
> ------------------------------------------------------------------------
> *From:* Sylvestre Ledru <sylvestre.ledru at scilab.org>
> *To:* users at lists.scilab.org
> *Sent:* Fri, 26 November, 2010 16:16:56
> *Subject:* Re: [scilab-Users] Labels vanish on export to eps
>
> Try
> aptitude install sun-java6-jre
> JAVA_HOME=/usr//lib/jvm/java-6-sun/ scilab
>
> Sylvestre
>
> Le vendredi 26 novembre 2010 à 02:41 -0800, Vishwanath Rao a écrit :
> >
> > How to switch to Sun java?
> >
> >
> > From: Calixte Denizet <calixte at contrib.scilab.org 
> <mailto:calixte at contrib.scilab.org>>
> > To: users at lists.scilab.org <mailto:users at lists.scilab.org>
> > Sent: Fri, 26 November, 2010 15:59:23
> > Subject: Re: [scilab-Users] Labels vanish on export to eps
> >
> > Le vendredi 26 novembre 2010 à 02:22 -0800, Vishwanath Rao a écrit :
> > >
> > > Following is the script that I am running.  This is on Ubuntu Lucid
> > > 10.04 and Scilab version 5.2.1.  I have installed plotlib
> > >
> >
> > You use probably OpenJDK rather than Sun/Oracle java. If I'm right,
> > could you switch to Sun java ?
> >
> > >
> > > begin script:
> > >
> > >
> > > clear;
> > > close;
> > >
> > >
> > >
> > >
> > > a = [1 -3]';//First point
> > > b = [-2 1]';//Second Point
> > >
> > >
> > > d = sqrt((a(1) - b(1))^2 + (a(2)-b(2))^2) //Distance between the
> > > points
> > >
> > >
> > > x_min= min(a(1),b(1));
> > > x_max = max(a(1),b(1));
> > > y_min= min(a(2),b(2));
> > > y_max = max(a(2),b(2));
> > >
> > >
> > > x = x_min:(x_max-x_min)/100:x_max;
> > > y = y_min:(y_max-y_min)/100:y_max;
> > >
> > >
> > > figure("BackgroundColor",[1 1 1]);
> > > plot(x,y)
> > > _axis([-5 5 -5 5])
> > > _grid
> > > xlabel('X')
> > > ylabel('Y')
> > >
> > >
> > >  end script
> > >
> > >
> > > regards,
> > > Vishwanath.
> > >
> > >
> > >
> > > ----- Original Message ----
> > > From: Calixte Denizet <calixte at contrib.scilab.org 
> <mailto:calixte at contrib.scilab.org>>
> > > To: users at lists.scilab.org <mailto:users at lists.scilab.org>
> > > Sent: Fri, 26 November, 2010 15:07:51
> > > Subject: Re: [scilab-Users] Labels vanish on export to eps
> > >
> > > Le vendredi 26 novembre 2010 à 01:36 -0800, Vishwanath Rao a écrit :
> > > > When I export an plot to .eps format, the x and y labels vanish.
> > Is
> > > there are
> > > > workaround?
> > > >
> > > >
> > >
> > > Hello,
> > >
> > > Could you give an example of the plot you want to export ? What is
> > the
> > > version of scilab you use, what is your OS ?
> > >
> > > Best regards
> > >
> > > Calixte
> > >
> > > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
> -- 
> -------------------------
> Sylvestre Ledru
> -------------------------
> The Scilab Consortium
> Digiteo
> Domaine de Voluceau
> Rocquencourt - B.P. 105
> 78153 Le Chesnay Cedex
> France
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20101126/4b4dbe72/attachment.htm>


More information about the users mailing list