ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Axis macro in MetaFun
@ 2021-09-11 14:27 kauśika cittūr via ntg-context
  2021-09-11 16:19 ` Hans Hagen via ntg-context
  2021-09-11 17:00 ` Hans Hagen via ntg-context
  0 siblings, 2 replies; 4+ messages in thread
From: kauśika cittūr via ntg-context @ 2021-09-11 14:27 UTC (permalink / raw)
  To: ntg-context; +Cc: kauśika cittūr

Dear All,

I am truly grateful for the new additions to MetaFun. It has greatly helped me 
in producing neat drawings for my academic work. In this connection, I have a 
few queries.

Currently I am using PGFPlots (with ConTeXt) to draw simple plots from CSV 
data. I was wondering if there is any way to do the same in MetaFuns. That is, 
is it possible to do something like the following in order to obtain a line 
plot of the values in the 'data.csv' file? Also is it possible to have the 
'labels' be the identical for all points in a given list? 

\startMPcode
  draw lmt_axis [
      sx = 2mm, sy = 2mm,
      nx = 80, ny = 40,
      tx = 15, ty = 15, 
      
      list = {
            [
                  connect = true,
                  color = "darkblue",
                  close = true,
                  points = {data.csv},
                  labels = {"•"},
            ]
      },
  ] withpen pencircle scaled 0.5mm;
\stopMPcode

My final query: is it possible to specify a co-ordinate transform for any/all 
of the axes? For instance in my work, I would like to plot the y-axis in the 
log-scale.

Thanks,
kauśika


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2021-09-12  2:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11 14:27 Axis macro in MetaFun kauśika cittūr via ntg-context
2021-09-11 16:19 ` Hans Hagen via ntg-context
2021-09-11 17:00 ` Hans Hagen via ntg-context
2021-09-12  2:07   ` kauśika cittūr via ntg-context

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).