Walt Mankowski via plug on 31 Jan 2022 06:07:58 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Grace - help needed to annotate individual data points


Hi George,

First of all, sorry for the delay in releasing this. We have a message size limit of 100KB in mailman for this list. Anything larger than that will be stuck in the queue until someone notices and releases it. Keep that in mind when you send large attachments.

I don't know how committed you are to doing this in Grace, but the matplotlib package in Python has support for multiple axes, and it can handle dates so nicely you might not even need to. I've been experimenting with using it to plot Pennsylvania's county-level COVID data. You can see examples at http://www.mawode.com/~waltman/covid_pa_graphs/. Those graphs seem pretty similar to what I think you're trying to do.

Here's some sample matplotlib code showing how to put dates in the x-axis: https://matplotlib.org/stable/gallery/text_labels_and_annotations/date.html

Walt

On Sun, Jan 30, 2022, at 11:25 AM, George Langford via plug wrote:
Actually, it's help with the xmgrace WYSIWYG linux program that's 
needed.
The task is to plot data from spammy emails, with the X-Axis epochal 
time
in seconds from Jan. 1, 1970 and the Y-Axis the X-Spam-Score. The plot 
would
be far easier to understand if I could provide a secondary Y-Axis with 
calendar
dates. However, this isn't just an alternate set of units, because the 
months
have differing numbers of days. Therefore, I've looked up the epochal 
time for
each first day of each month of the years, and that's what are plotted 
across
the top of each of the attached plots. The date data use the pipe ("|") 
symbol
(ASCII 127 in xmgrace) repeated enough times to merge into the vertical 
bars
best viewed in the native Grace-Data4.agr plot along the top of the 
graph.

The only website that describes the process for annotating individual 
points
in a Grace plot tries to emulate YouTube but the steps are presented too
quickly for any hope of following to exits. Here's that link:
https://www.originlab.com/doc/Quick-Help/Label-Ploints-with-XY

I've edited the postscript version of the first plot with GIMP to show 
what
I'm trying to accomplish, but that's tedious and bloats the file too 
much.

I would have used PSI-Plot (and wine) to do this, but Trisquel no longer
supports wine, so I've started learning Grace. Does anyone on PLUG 
actually
use Grace with enough experience to give me some hints ?

George Langford
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug


Attachments:

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug