SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Jose Gomez-D. <jgo...@gm...> - 2007年10月31日 15:58:26
Hi,
Some colleagues have sent some plots which they generated using IDL
(boo!!! hiss!! :D), and they look quite dissimilar to my matplotlib
ones. I would like to mimic their layout as much as possible, which so
far is a success. The only problem is that I don't know what font to
use. In IDL, I believe it is called "Roman" (there's an smudged
example here: <http://www.astro.ufl.edu/~warner/IDL5220/HW4w.jpg>).
Does anyone know a suitable alternative?
Thanks!
Jose
From: Gary R. <gr...@bi...> - 2007年11月01日 10:29:15
IDL uses the Hershey vector fonts
<http://www.ifi.uio.no/it/latex-links/STORE/opt/rsi/idl/help/online_help/Hershey_Vector_Font_Samples.html>
The problem is that these are not trutype fonts, so the easiest solution 
is probably to find some free sans-serif font that looks close to 
Hershey on a free font site.
HTH,
Gary R.
Jose Gomez-Dans wrote:
> Hi,
> Some colleagues have sent some plots which they generated using IDL
> (boo!!! hiss!! :D), and they look quite dissimilar to my matplotlib
> ones. I would like to mimic their layout as much as possible, which so
> far is a success. The only problem is that I don't know what font to
> use. In IDL, I believe it is called "Roman" (there's an smudged
> example here: <http://www.astro.ufl.edu/~warner/IDL5220/HW4w.jpg>).
> Does anyone know a suitable alternative?
> 
> Thanks!
> Jose
From: Andrew M. <an...@an...> - 2007年11月01日 22:28:09
It depends exacly what you need, but this might help:
Ghostscript comes with the Hershey fonts. You should be able to choose 
an appropriate font name in Matplotlib, e.g. Hershey-Gothic-English, and 
produce a Postscript file using an appropriate backend. You should then 
be able to convert that to one of any number of formats (bitmaps and 
PDF) using Ghostscript. Note the use of the word should, I haven't tried 
this myself!
- Andrew
Gary Ruben wrote:
> IDL uses the Hershey vector fonts
> <http://www.ifi.uio.no/it/latex-links/STORE/opt/rsi/idl/help/online_help/Hershey_Vector_Font_Samples.html>
>
> The problem is that these are not trutype fonts, so the easiest solution 
> is probably to find some free sans-serif font that looks close to 
> Hershey on a free font site.
>
> HTH,
> Gary R.
>
> Jose Gomez-Dans wrote:
> 
>> Hi,
>> Some colleagues have sent some plots which they generated using IDL
>> (boo!!! hiss!! :D), and they look quite dissimilar to my matplotlib
>> ones. I would like to mimic their layout as much as possible, which so
>> far is a success. The only problem is that I don't know what font to
>> use. In IDL, I believe it is called "Roman" (there's an smudged
>> example here: <http://www.astro.ufl.edu/~warner/IDL5220/HW4w.jpg>).
>> Does anyone know a suitable alternative?
>>
>> Thanks!
>> Jose
>> 
From: Angus M. <am...@gm...> - 2007年11月01日 12:12:23
On 01/11/2007, Jose Gomez-Dans <jgo...@gm...> wrote:
> Hi,
> Some colleagues have sent some plots which they generated using IDL
> (boo!!! hiss!! :D), and they look quite dissimilar to my matplotlib
> ones. I would like to mimic their layout as much as possible, which so
> far is a success. The only problem is that I don't know what font to
> use. In IDL, I believe it is called "Roman" (there's an smudged
> example here: <http://www.astro.ufl.edu/~warner/IDL5220/HW4w.jpg>).
> Does anyone know a suitable alternative?
Not quite the answer you were looking for, but a completely different
approach, if you can ask them to resend the data, is to get them to
save out a postscript file, which IDL can do. Then you can edit the
components with a tool like inkscape and standardise the fonts across
all graphs.
Angus.
-- 
AJC McMorland, PhD Student
Physiology, University of Auckland
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /