30 de abril de 2007

Plotting

Making publication-quality plots is one of the ugly parts in the life of a scientist wannabe. In my field there are two main plotting packages in use (besides IDL which i don't have): SuperMongo and PGPLOT.

Both are quite old. I guess the best of them must be SuperMongo, since its lemma is "You can't beat SM.". Joking aside I can't give an unbiased opinion, since all the times that I have tried to use SM, I have hit a wall of uneasiness. The syntax is too different from everything else that I know.

That leaves us with... erm well, PGPLOT and PLplot. Since my main computing environment has come to be Octave running on Ubuntu, I thought that it would be good to give PLplot a drive, after all it has pre-compiled packages and it's supposed to work fine from within Octave. Another advantage is that it's built to be very similar to PGPLOT, which I had used in the past. After fighting with it for some hours I can say that it is not ready for prime-time. Some of the problems I found while using it:


  • The gnome server won't work. That leaves us with the xwin server which is incapable of redrawing itself (a PITA if you are working from a full-screen terminal).

  • Issuing plend() to close the active plotting window will make Octave segfault if actually there's no such window. Hey, I made a mistake! But no need to punish me so hard.

  • The output is... well not-as-good-as-I-would-like. If you print directly to a Postscript device, some Hersey symbols (like the Sun's symbol $\odot$ in LaTeX) won't be drawn. If you plot to the xwin server and then save the output with save_fig, the result is ugly. All the letters and symbols are squashed and o's (supposed to be a round and in fact round on screen) appear as ellipses on the Postscript.



Those were the most important so, repeat after me: "You can't beat PGPLOT (unless you are SuperMongo, of course)". The final result, I'm using PGPLOT from inside Octave with the help of the matwrap tool. No need to make specific programs and compile them to plot your data. Works like a charm, it's much more solid than PGPLOT and the output has that fancy professional look that only SM and PGPLOT can attain.

Now I'm a believer, I won't doubt again about how to make my plots.

19 de abril de 2007

Pelis

Rannulph Junnah: Now, the question on the table is how drunk is drunk enough? And the answer is that it's all a matter of brain cells
Hardy Greaves: Brain cells?
Rannulph Junnah: That's right Hardy. You see every drink of liquor you take kills a thousand brain cells. Now that doesn't much matter 'cos we got billions more. And first the sadness cells die so you smile real big. And then the quiet cells go so you just say everything real loud for no reason at all. That'ok, that's ok because the stupid cells go next, so everything you say is real smart. And finally, come the memory cells. These are tough sons of bitches to kill.

Junnah.- Bien, lo que aquí se ha planteado es cuánto es lo bastante borracho. Y la respuesta es que depende de las células del cerebro.
Hardy.- ¿Del cerebro?
Junnah.- Así es Harvey, con cada vaso de licor que tomas acabas con cientos de esas células. Pero eso no importa mucho porque tenemos millones.
Primero mueren las de la tristeza, así que estás sonriente. Luego mueren las del silencio y todo lo dices en voz alta aunque no haya ninguna razón. ¡Pero eso no importa! No importa porque luego mueren las de la estupidez y hablas con inteligencia. Y por último las células de los recuerdos. Esas son difíciles de matar...



Rob: My desert island, all-time, top-five most memorable breakups, in chronological order, are as follows: Alison Ashmore; Penny Hardwick; Jackie Alden; Charlie Nicholson; and Sarah Kendrew. Those were the ones that really hurt. Can you see your name on that list, Laura? Maybe you'd sneak into the top ten. But there's just no room for you in the top five, sorry. Those places are reserved for the kind of humiliation and heartbreak you're just not capable of delivering.

Rob: Top five things I miss about Laura. One; sense of humor. Very dry, but it can also be warm and forgiving. And she's got one of the best all time laughs in the history of all time laughs, she laughs with her entire body. Two; she's got character. Or at least she had character before the Ian nightmare. She's loyal and honest, and she doesn't even take it out on people when she's having a bad day. That's character.
[holds up three fingers]
Rob: Three;
[long pause, hesitantly]
Rob: I miss her smell, and the way she tastes. It's a mystery of human chemistry and I don't understand it, some people, as far as their senses are concerned, just feel like home.
[shakes his head, recollecting, then looks back and lip synchs 'four' while holds up four fingers]
Rob: I really dig how she walks around. It's like she doesn't care how she looks or what she projects and it's not that she doesn't care it's just, she's not affected I guess, and that gives her grace. And five; she does this thing in bed when she can't get to sleep, she kinda half moans and then rubs her feet together an equal number of times... it just kills me. Believe me, I mean, I could do a top five things about her that drive me crazy but it's just your garden variety women you know, schizo stuff and that's the kind of thing that got me here.
 
Creative Commons License
Este weblog se publica bajo una licencia Creative Commons.