Posts Tagged ‘Lucid’

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


This is the right p1


The right p2


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], \

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.


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
export PATH

Save the file, and run

$ source .bashrc

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


Read Full Post »

I’ve just re-installed Ubuntu in my Dell XPS 1330n. It looks very nice… but as I wrote in a previous post, I’d like it to be a bit different (out of the box) ’cause it tends to look much like Leopard.

  • The internet connection works, but it is slow… could be the repositories.
  • Firefox’s default search engine has gone back to Google. I have nothing against Yahoo!, but I’m a Google’s fan… So, good for me.
  • I’ve noticed that Empathy includes Facebook chat and MySpace one. As usual, the F4 key allows you to configure your accounts. The chat windows is cuter.
  • In System-> Administration -> Software Source, I changed to mIain server in Ubuntu SoftwareTab, checked the Canonical Archive box in Other Software Tab, and checked the proposed and backport boxes in the Updates Tab. Finally close for reload the changes.
  • After changing the Sotfware sources… It finally began to dist-update. 103 files for a total of 117.1 Mb. Not to bad.
  • I’ve just found something called Gwibber or Broadcast (when you press the mail icon in the upper panel)… It allows you to post in Social networks such as facebook, Flirk, … and many others.
  • Transmission continues been the default torrent client (I really love it!).
  • Still don’t use the Simple Scan program, but I liked really much Xsane… I know, I should give him a try!
  • The detection of external media is as good as before.
  • One of my favourite text editors, Emacs has evolved to Emacs23, I tried like one month ago and I didn’t like it much. Let’s see if this version is better.
  • A Kernel problem which slow down the copy process for large files seems to be gone!

I haven’t finished the Configuration, so I’ll be posting during the day!


Read Full Post »

Ready for Ubuntu 10.04

This week the RC version of Ubuntu 10.04 (Lucid Lynx) is released… so I got everything ready for the installation.

Cannot wait any longer!

Read Full Post »

Older Posts »