ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Metapost Font Question
@ 2009-12-31 20:24 David Arnold
  2010-01-01  8:26 ` Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: David Arnold @ 2009-12-31 20:24 UTC (permalink / raw)
  To: Context Mailing List List


[-- Attachment #1.1: Type: text/plain, Size: 405 bytes --]

All,

The attached Metapost file uses the statsmac package by Anthony Phan. 

http://www-math.univ-poitiers.fr/~phan/statsmac.html

And the package:

mps.tar.gz

To compile the attached file I use:

mpost Untitled.mp
mptopdf Untitled.1

I've attached the resulting file. I am wondering why the "cm" label is set in a larger font than the ticklabels. Can anyone help?


David.






[-- Attachment #1.2.1: Type: text/html, Size: 970 bytes --]

[-- Attachment #1.2.2: Untitled.mp --]
[-- Type: application/octet-stream, Size: 1543 bytes --]

%%% Untitled.mp -- do not edit, generated automatically by Untitled.tex
input statsmac
input mp-tool;
beginfig(1);
LaTeX_unitlength := 28.45274pt;
w := 10*LaTeX_unitlength;
h := 3*LaTeX_unitlength;

defaultfont:="ptmr8r";
defaultscale:=6pt/fontsize defaultfont;

data(Spiders)
"female", 1.49, 688, "female", 1.17, 388, "female", 1.29, 544,
"female", 1.36, 645, "female", 1.05, 264, "female", 1.11, 322,
"female", 1.26, 503, "female", 1.59, 847, "female", 1.29, 540,
"female", 1.17, 382, "female", 1.18, 404, "female", 0.88, 203,
"female", 1.20, 422, "female", 1.10, 307, "female", 1.44, 784,
"female", 1.18, 402, "female", 1.30, 556, "female", 1.20, 419,
"female", 1.39, 690, "female", 1.30, 557,
"male", 0.37, 0, "male", 0.40, 0, "male", 0.44, 0, "male", 0.58, 0,
"male", 0.42, 0, "male", 0.37, 0, "male", 0.40, 0, "male", 0.38, 0,
"male", 0.29, 0, "male", 0.47, 0, "male", 0.51, 0, "male", 0.43, 0,
"male", 0.50, 0, "male", 0.37, 0, "male", 0.39, 0, "male", 0.51, 0,
"male", 0.62, 0, "male", 0.48, 0, "male", 0.50, 0, "male", 0.28, 0;

goptions hatchfill, autogrid, autoframe, opacity;
framebgcolor:=0.95white;
gridcolor:=framefgcolor:=0.5white;

usedata(Spiders, drop, x, drop);
setrange(0.1,1.8,10cm,0,2.2,3cm);
goptions alphafill; alpha:=0.5;
bounds 0.2, 0.35, 0.50, 0.65, 0.80, 0.95, 1.1, 1.25, 1.40, 1.55, 1.70;
histogram(x);
fillcolor:=blue;

pickup rule.nib;
drawarrow gcoord(hmin,0)--gcoord(hmax,0);

pickup thin.nib;
xticks.bot(0) lastbounds;
label.bot(btex \vphantom0cm etex, gcoord(hmax,0));


endfig;
%%% the end.
end.
endinput;

[-- Attachment #1.2.3: Type: text/html, Size: 147 bytes --]

[-- Attachment #1.2.4: Untitled-1.pdf --]
[-- Type: application/pdf, Size: 21446 bytes --]

[-- Attachment #1.2.5: Type: text/html, Size: 147 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Metapost Font Question
  2009-12-31 20:24 Metapost Font Question David Arnold
@ 2010-01-01  8:26 ` Taco Hoekwater
  2010-01-01 18:03   ` David Arnold
  0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2010-01-01  8:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

David Arnold wrote:
> All,
> 
> The attached Metapost file uses the statsmac package by Anthony Phan. 
> 
> http://www-math.univ-poitiers.fr/~phan/statsmac.html
> 
> And the package:
> 
> mps.tar.gz <http://www-math.univ-poitiers.fr/~phan/downloads/metapost/mps.tar.gz>
> 
> To compile the attached file I use:
> 
> mpost Untitled.mp
> mptopdf Untitled.1
> 
> I've attached the resulting file. I am wondering why the "cm" label is set in a 
> larger font than the ticklabels. Can anyone help?

The tick labels are typeset by metapost itself, but the "cm" is
typeset externally (by ConTeXt, if you run the garden distribution).
Metapost is probably using 10pt while ConTeXt uses its default 12pt.

   verbatimtex
   \setupbodyfont[10pt]
   etex

or something similar is needed at the top of the file.

Best wishes,
Taco


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Metapost Font Question
  2010-01-01  8:26 ` Taco Hoekwater
@ 2010-01-01 18:03   ` David Arnold
  0 siblings, 0 replies; 3+ messages in thread
From: David Arnold @ 2010-01-01 18:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Taco,

Thanks.

D.

On Jan 1, 2010, at 12:26 AM, Taco Hoekwater wrote:

> David Arnold wrote:
>> All,
>> The attached Metapost file uses the statsmac package by Anthony Phan. http://www-math.univ-poitiers.fr/~phan/statsmac.html
>> And the package:
>> mps.tar.gz <http://www-math.univ-poitiers.fr/~phan/downloads/metapost/mps.tar.gz>
>> To compile the attached file I use:
>> mpost Untitled.mp
>> mptopdf Untitled.1
>> I've attached the resulting file. I am wondering why the "cm" label is set in a larger font than the ticklabels. Can anyone help?
> 
> The tick labels are typeset by metapost itself, but the "cm" is
> typeset externally (by ConTeXt, if you run the garden distribution).
> Metapost is probably using 10pt while ConTeXt uses its default 12pt.
> 
>  verbatimtex
>  \setupbodyfont[10pt]
>  etex
> 
> or something similar is needed at the top of the file.
> 
> Best wishes,
> Taco
> 
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-01 18:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-31 20:24 Metapost Font Question David Arnold
2010-01-01  8:26 ` Taco Hoekwater
2010-01-01 18:03   ` David Arnold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).