New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macsyma on-screen plots #1129
Comments
Not quite the same, but you can use PLOT(sin(x),x,0,%pi*2); now within Macsyma. You will get a plot displayed on your screen. Not particularly good graphics (text graphics), but it works. It uses the graphing support in MAXOUT; GRAPH FASL and MAXOUT; GRAPH2 FASL. Both of these come from JPG; PLOT >. (I've never seen the use of (DECLARE (SPLITFILE ...)) to cause the lisp compiler to emit more than one FASL file from the same source file. |
I'm trying to use PLOT2 to print in a file, but at the moment I am able only to have a on-screen plot. plotmode(xgp,d); If I remove the D in the PLOTMODE command, I have two identical files in .TEMP. (FAUSAP .PLOT. and .PLOT. 1 - after I run in MACSYMA the command HARDCOPY()) but i do not know how to process them. I tried with VERSA with no luck. I also noticed that PLOTMODE accept, also, as parameter the GR (GRINNEL TV). What is this ? |
The Grinnell TV is a bitmapped terminal system similar to the Knight TV, but built on MINITS. See #145. |
|
It seems PLOT2 can draw on an Imlac or Grinnell TV using ARDS graphics commands. In that case, I suppose it shouldn't be too hard to add SUPDUP graphics for the Knight TV. |
As someone who has spent quite a bit of time recently to get good graphical
output of Maxima equations and graphs, I'd be very interested to see a
screenshot of what this looked like in Macsyma.
Could you share?
Regards,
Elias
…On Tue, 14 Aug 2018, 19:16 Lars Brinkhoff, ***@***.***> wrote:
It seems PLOT2 can draw on an Imlac or Grinnell TV using ARDS graphics
commands. In that case, I suppose it shouldn't be too hard to add SUPDUP
graphics for the Knight TV.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1129 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA-yk02Sd9n8YwsYLr3RofPijDxncwPAks5uQrGhgaJpZM4Vr3MX>
.
|
John Kulp says Macsyma could use a graphics package by Charles Karney (CFFK) to display on the MINITS TV systems. This was for Symbolics Common Lisp though. |
I see these interesting files: CFFK; APLOT2 300 |
How did you get this to work? I started up xterm, did a "TERM=tek" and then telneted to an ITS, did a :tctyp tek, ran macsyma, and tried a plot. The results were bad. Did you start up xterm differently? Did you specify a TCTYP before starting Macsyma? Did you need to tell Macsyma anything before invoking PLOT2? |
Never mind. Figured it out. Had to start xterm with -t option. Then, telnet to ITS, do ":tctyp tek", then run macsyma, and plot. |
Exactly right.
|
Did you figure out how to display nice graphics on a TV11? I haven't yet. |
No, and I won't investigate that now. I believe it's not directly
supported yet. If PLOT2 can write a file, I or GR should make an ARDS
file which can be displayed on a TV with SUPARD.
|
Some documentation I found says this:
|
There's also this, but "soon" hasn't happened yet. 5 is the TCTYP code for a TV terminal.
|
In theory, although I haven't gotten it to work yet, after a plot is displayed, you can type and the HARDCOPY command will be executed on the current plot. This is supposed to write an ARDS file to the .TEMP.; directory. This would have typically been used with the XGP command to output the graph to the XGP printer. But the intermediate form is ARDS, so theoretically anything that can display ARDS format should be able to display these. |
I lied. It works fine. You have to first do:
Then, your plot will be saved to .TEMP.;<UNAME> .PLOT.. Then you can display on a TV with:
|
Yes. It is annoying that it uses the same file name each time. It might have been nice if the demo script I gave you could emit each plot to the screen and also to a file. But if you can demo with a Tektronix xterm then you’ll see nice graphs anyway. If you want ARDS graphics, I could alter the script to emit each to a file, use macsyma commands to rename the file, and carry on. Then you could use SUPARD to display each on a TV. Let me know if you want me to do any more for your Macsyma demo. |
I'm good, thanks! I think it's better to run xterm and get the graphics drawn live. It also highlights how archaic Tektronix emulation in xterm can be of use with historical programs. |
Agreed. |
To add support for Knight TV displays:
|
Here's a GUI for Maxima (done by @lokedhs) showing some plots:
https://www.youtube.com/watch?v=9VIT_Ml2v-Q
I don't think something like this would be outside the reach of ITS Macsyma. Similar to how
compile_lisp_file
can call out to another program, the Macsyma PLOT... is it 2 or 3? ... package can call on a program that draws a plot on the screen.The text was updated successfully, but these errors were encountered: