Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^6: Perl regex speed

by cavac (Parson)
on Oct 27, 2022 at 11:45 UTC ( [id://11147741]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Perl regex speed
in thread Perl regex speed

If a plot is required, one can be easily done in a way the text-based forum supports it (as long as the screen width is sufficient):

Air pressure BME + 991.28 +--------------------------------------------------------- +--------------------------------------+ | + *** + + + + + + + + | 991.26 |-+ ******* + +-| | ***** ** ** **** + | 991.24 |** *** ***** *** **** + +-| |* * **** ** ** + | |* ****** ** **** ** * + | 991.22 |-+ ********** + +-| | * * **** +** | 991.2 |-+ ******* ** * +*** +-| | * ****** **** + ** | hPa 991.18 |-+ ** **** + * +-| | ** + *** *** | 991.16 |-+ + ******** +-| | + ** *** | 991.14 |-+ + *** +-| | + * | | + ***** | 991.12 |-+ + *** +-| | + ** * | 991.1 |-+ + ********* +-| | + + + + + + + + ****** | 991.08 +--------------------------------------------------------- +--------------------------------------+ 27.10 27.10 27.10 27.10 27.10 27.10 + 27.10 27.10 27.10 27.10 09:30 09:45 10:00 10:15 10:30 10:45 + 11:00 11:15 11:30 11:45

I used Gnuplot to make this:

set title "Air pressure BME" set datafile separator ";" set terminal dumb size 120,30 #set output "bme_pressure.png" set xlabel "Logtime UTC" set ylabel "hPa" set xdata time #set timefmt "%Y-%m-%d" #set xrange ["03/21/95":"03/22/95"] set format x "%d.%m\n%H:%M" set timefmt "%Y-%m-%d %H:%M:S" set key autotitle columnhead outside plot "bme_pressureonly.csv" using 1:2 title "" with lines

The magic line here is:

set terminal dumb size 120,30

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP

Replies are listed 'Best First'.
Re^7: Perl regex speed
by malaigo (Novice) on Oct 28, 2022 at 03:32 UTC
    Well, you can run my code. Exactly. Use something like termcap for terminal graphics. But frankly, pictures are easier to read. Apple's code, I don't have, so I can't make terminal graphics out of that.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11147741]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-24 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found