ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "kauśika cittūr via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: "kauśika cittūr" <citturs@gmail.com>
Subject: Axis macro in MetaFun
Date: Sat, 11 Sep 2021 19:57:26 +0530	[thread overview]
Message-ID: <2945364.l7x7BXaAel@sreeramtplt> (raw)

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
___________________________________________________________________________________

             reply	other threads:[~2021-09-11 14:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-11 14:27 kauśika cittūr via ntg-context [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2945364.l7x7BXaAel@sreeramtplt \
    --to=ntg-context@ntg.nl \
    --cc=citturs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).