HPLOT

Contributions to this software library are always welcome. Please ensure that you post program listings rather than .raw files. They give a reasonable idea of what your program does without having to load them into a DM42 and you can also include comments in your code. Check out the following link for a decoder/encoder: https://technical.swissmicros.com/decoders/dm42/

You can then copy/paste the listing and post it in "code" tags.
Thomas_ER
Posts: 192
Joined: Mon Jul 24, 2017 3:19 pm
Location: Germany

Re: HPLOT

Post by Thomas_ER »

Walter wrote:
Thu Dec 21, 2017 5:52 am
No, this was something I wrote in the WP43S manual. ;)
Whow!
The manual is ready before the calc. ;)
[ HP48/49/50/42S/WP34/HP Prime/ DM42 (#00185+00318) ]
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: HPLOT

Post by Walter »

Thomas_ER wrote:
Thu Dec 21, 2017 11:32 am
Walter wrote:
Thu Dec 21, 2017 5:52 am
No, this was something I wrote in the WP43S manual. ;)
Whow!
The manual is ready before the calc. ;)
In our business, that's the way. The manual serves as spec of the UI as well. And you can avoid a lot of bullshit and development loops by specifying in due time what you want to achieve - taking the point of view of future users.

If you want, take a look at the manuals of the WP3xS so you know what I'm talking about. ;)
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
User avatar
revwillie
Posts: 133
Joined: Mon Apr 24, 2017 7:48 pm

Re: HPLOT

Post by revwillie »

So, it's actually simpler than I thought. Here I was, hunting through alpha menus looking for the "pi" character but of course, it's right there on the roll key (shifted). Duh.

Where you would otherwise issue the "PIXEL" command for a little dot at the X,Y coordinates in the X and Y registers, use this instead:

"PiPiPi"
AGRAPH

and it should be preceded by CLA if the alpha register had something else, like the name of the function to graph, in it.
DM42 SN: 00076
DM15, HP 28c, HP 12c, HP 10b, HP 20b, HP 30b, HP 17bII, HP 42s, HP 35s, WP 34s, NP-25, TI-83+, teenix multicalc
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: HPLOT

Post by grsbanks »

revwillie wrote:
Thu Dec 21, 2017 1:55 pm
"PiPiPi"
AGRAPH

and it should be preceded by CLA if the alpha register had something else, like the name of the function to graph, in it.
CLA isn't necessary if you use a string literal without the "append" character. It was only necessary when using XTOA because that function appends to the alpha register rather than replacing its contents.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
User avatar
revwillie
Posts: 133
Joined: Mon Apr 24, 2017 7:48 pm

Re: HPLOT

Post by revwillie »

grsbanks, you are a huge help.

because I prefer GrMod selection m3234 style like you did in DJPLOT, I've abandoned HPLOT and started working in DJPLOT. Also, the tick marks are great.
DM42 SN: 00076
DM15, HP 28c, HP 12c, HP 10b, HP 20b, HP 30b, HP 17bII, HP 42s, HP 35s, WP 34s, NP-25, TI-83+, teenix multicalc
HCervantes
Posts: 13
Joined: Sat Feb 18, 2023 9:52 pm

Re: HPLOT - HP-82240B Printer

Post by HCervantes »

Greetings,

Have you been able to print the graphs on HP's 82240A or B thermal printers?
I have tried all versions of the PLOT program shared by Thomas Okken (plot_thomas.raw, dplot_thomas.raw, etc.) with no luck. Graphs seem to show correctly on my DM-42 screen, but can only print correctly the printout headers. Where the graph should start printing I just get garbage.

Any suggestions will ber highly appreciated.
HCervantes
Post Reply