Feeds:
Posts
Comments

Posts Tagged ‘Lynx’


For a publication I was working on, I plotted functions in  PDF format. However, the journal ask me to handle them in EPS format.

“What’s the point?” you might ask. Well, since I installed Lucid Lynx (a clean installation), the files of those graphic were gone… Fool of me, you will say, but really, I never thought that this days journals DO NOT accept PDF files!!!!

Who cares! to the point.

First I tried with the convert command

for i in *.pdf; do convert $i $(echo $i| sed -e s/pdf/eps/g); done

It did the job, but the quality of the plots was compromised.

Then, I move to Sage(math), and re-discover the function ‘graphics_array’, and try this,

p1 = plot(Vn(x, 1, 3), (x,-5,5), color='black', thickness=2)
p1 += plot(Vp(x, 1, 3), (x,-5,5), color='black', thickness=2, linestyle='-.',  \
  axes_labels=[r'$\xi^\prime', r'$V_{qm}(\xi^\prime)$'], fontsize=17)
p2 = plot(Vn(x, 3, 3), (x,-5,5), color='black', thickness=2)
p2 += plot(Vp(x, 3, 3), (x,-5,5), color='black', thickness=2, linestyle='-.', \
  axes_labels=[r'$\xi^\prime$',r''], fontsize=17)
p3 = plot(Vn(x, 5, 3), (x,-5,5), color='black', thickness=2)
p3 += plot(Vp(x, 5, 3), (x,-5,5), color='black', thickness=2, linestyle='-.', \
  axes_labels=[r'$\xi^\prime$',r''], fontsize=17)

… a little explanation?! p1, p2 and p3 are the graphics I’d like put into an array, each of them contain 2 plots (both black because otherwise they’ll make me pay an incredible amount of money… crazy people!), and them try the graphics_array,

ga = graphics_array([p1, p2, p3])
ga.show(frame=True, axes=False, figsize=[12,8])

and obtain something like this,

First try with graphics_array

Yeah babe!!!… What???!!! It’s not all right! What happened with the axis labels, the font size, and so on?

Second try: let’s see if the plots are working one by one

p1

This is the right p1

p2

The right p2

p3

The right p3

The are alright! So, What happened? Let me run again the graphics_array commands

ga = graphics_array([p1, p2, p3])
ga.show(frame=True, axes=False, figsize=[12,8])

What did I get?…

The final result was as I wanted to be! 🙂

MORAL: Make Sage(math) show you the plot, one by one, before make them into an array!

Yeah… I almost forgot it!

My goal was to save it as an EPS file, so after getting the looked graph, the command is

ga.save(frame=True, axes=False, figsize=[12,8], \
  filename='/path/to/directory/name-of-plot.eps')

Cya all!

Read Full Post »


I recommend this page for configuring your gmail account.

Read Full Post »


Here is the link to the page.

Ultimate tar command examples.

Enjoy.

Read Full Post »


I’ve just notice that the bluetooth manager is not present in the upper panel
Where is it?

Read Full Post »


Since I install a fresh Ubuntu, I do not have a texlive configuration on the computer. If you do, might want to remove it before the installation,

$ sudo rm -rf /usr/local/texlive/

Now, let go to the link for downloading the installer. Once the downloading is ready, it is time to untar it (the easiest way is to right-click on it and choose `extract here’). Finally, we run the installer,

$ cd Downloads/install-tl-xxxx/ 
$ sudo ./install-tl

Right now I’m running mine. Have fun with yours.

I almost forgot the configuration of the path, I use a modified PATH configuration on my .bashrc file, to open yours use the command line

$ gedit .bashrc

And add at the end the following lines,

### LaTeX 2009 configuration
PATH=/usr/local/texlive/2009/bin/i386-linux:$PATH
export PATH

Save the file, and run

$ source .bashrc

to update the configuration… or just close and reopen the terminal.

Dox.

Read Full Post »

Older Posts »