From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: Examples of use of svg.el? Date: Fri, 1 Apr 2022 21:12:38 -0300 Message-ID: References: <878rsozdb2.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5910"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 02 02:13:30 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1naROU-0001Kx-CM for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 02 Apr 2022 02:13:30 +0200 Original-Received: from localhost ([::1]:49206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naROS-0004P8-QK for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 01 Apr 2022 20:13:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naRNw-0004P0-Fp for help-gnu-emacs@gnu.org; Fri, 01 Apr 2022 20:12:56 -0400 Original-Received: from [2a00:1450:4864:20::135] (port=36388 helo=mail-lf1-x135.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naRNs-00007h-O9 for help-gnu-emacs@gnu.org; Fri, 01 Apr 2022 20:12:55 -0400 Original-Received: by mail-lf1-x135.google.com with SMTP id bt26so7696975lfb.3 for ; Fri, 01 Apr 2022 17:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ilk3W/EtjtLGJVG2EBDgjp7dSD68eApnko2d3kdYhZo=; b=MlxMpCvtM6vIWweNzNLvGLMlzzBxpqnzyxV1j6bliVND5WWQh9ZSb1AbrPg33MjZE+ g/EjTOdCYFH6orFB5LT6QIyPVutNMjirQNLMXtShnwPLP6e2zA7yt9g4xWMuzsYKANWO r4zUxaC1wo99s5C6AzVfMAGMa8a9wRxyqDDZjMQJEH+DQCQ782d9AAK7lGvHD2HFxD9H 8NTdq1T1+YrxMWdPLrS8vBryZb//nJwLBRwrR/vCqax6L8qQF1XI7cQGTkn+7bSjCDGO FYX9MxMOjFp7BH8VJZEss7NmBHApAZ7gHaLP1wJW+H1j8wlBcqVtclWM5JaupxY8plDK 3WkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ilk3W/EtjtLGJVG2EBDgjp7dSD68eApnko2d3kdYhZo=; b=UbFMt7roi1CHD46oCq5ULZKyXkTht1Cf2hCK+T2Pz8QwXR0184m+L58GdwCRplswdu 6e/t2mqilJ8Mrh5vXPy10CBx0fzZ8cJ9lPviJ4yu7fcxA/jGtwv4MOnfHn8xSKxsyV72 i+ckPIVQjBvoNtUtKvdI+BBleHnMfwFfoCR7EHQt2h/bHX+NJ/etINQy4LrB2FZM4GiB MtXxqoyhdQixDg0+jW6yiNJaP95TNujOAkB2sflEhfbXphOkbHff5nORtNHfMY9QFqJQ aBjhKeqiL3ev0gqorawtQZSWoZzXamr/SwdWWpHwLZ5JN1wx0EVLY7k6AMZkW40fV1at FE1w== X-Gm-Message-State: AOAM532rt19yGarEh7KqOxhkuaJLrx9fShlpR8QuWk6iIfE+8VmSFT7O aQQicJb4nmntVKll8ROHqYEGCaN26S6UWAUXYwY= X-Google-Smtp-Source: ABdhPJy0l83a9r3JEFyr+nHbPaNmfnXjlgqPSOojk93asdPcxigwBbJN83F+qqDoX7lLUt0fLFpk3glWzYPktJOeYOU= X-Received: by 2002:a05:6512:4001:b0:44a:c386:aac9 with SMTP id br1-20020a056512400100b0044ac386aac9mr10229367lfb.12.1648858370350; Fri, 01 Apr 2022 17:12:50 -0700 (PDT) In-Reply-To: <878rsozdb2.fsf@web.de> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::135 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=eduardoochs@gmail.com; helo=mail-lf1-x135.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136826 Archived-At: On Fri, 1 Apr 2022 at 18:47, Michael Heerdegen wrote: > > Eduardo Ochs writes: > > > Hi list, > > > > I am trying to learn how to use svg.el, and I plan to use it mainly to > > plot mathematical functions. > > Why don't you want to use Calc? > > Michael. Hi Michael, I don't have a short answer for that, but I'll try to make my longish answer short enough... There are some programs that most people find very easy and a few people find very hard. My favorite example of that is Org, see: http://angg.twu.net/2021-org-for-non-users.html A quote: "At some point in 2021 I finally understood why I have always found Org Mode so hard to use. To make a long story short, I am a very bad _user_: when I try to use something and I can't make a clear mental model of what's going on my first reaction is to try to look at the data structures and at the source code - and the code that implements code blocks in Org is hard to understand." I was never able to learn Calc properly, and I _guess_ that the main reason for that is because I've never found a good way to record my interactions with Calc and "play them back" later. Take a look at the first three screenshots in: http://angg.twu.net/2022eev-svg.html The third screenshot shows a quadratic function. I know how to make Maxima draw something very similar to that; Maxima generates a script for gnuplot, and asks gnuplot to render it. The script can be saved to a file, and I learned a lot about gnuplot by examining these scripts. I only learned that Calc can do graphics via gnuplot a few minutes ago: (info "(calc)Graphics") The quadratic function in my third screenshot is defined in this way: x0 = 3 y0 = 2 z = z(x,y) = (x-x0)^2 - (y-y0)^2 + 2 How would you make Calc plot it for x in [x0-1,x0+1] and y in [y0-1,y0+1]? Also: how do we access the script that Calc sends to gnuplot? Btw, my way to script my interactions with Maxima is demo-ed here: http://angg.twu.net/eev-find-angg.html The third thumbnail - the one that shows a 3D plot - points to this, http://www.youtube.com/watch?v=FoAzpGzFCSE&t=15m14s that nowadays is one of my favorite short demos of eev in action - as in: "hey, if you've never seen how to use eev to control REPLs then follow this link and watch 30 seconds of the video... note that the `&t=15m14s' make Youtube start playing it from 15:14". I would _really_ love to make something similar for Calc. Any help would be greatly appreciated! Cheers & thanks in advance, Eduardo Ochs http://angg.twu.net/#eev