Re: gnuplot help
by Antonio Olivares
>> Subject: Re: gnuplot help
>>
>> On 2015-11-10 19:04, Antonio Olivares wrote:
>>> The only one that works is the following one:
>>>
>>> http://plotshare.com/index.ws/plot/858779550
>>>
>>> I wanted to change it, put the dates and the opponent and make it look
>>> like a bar graph. I tried modifing the code and add the style used by
>>> Marco F. a fellow Fedora/open source user:
>>>
>>> http://www.techrepublic.com/blog/linux-and-open-source/how-to-handle-time...
>>>
>>> But I cannot get it to work.
>>
>> Hi Antonio,
>> "Marco F. a fellow Fedora/open source user" here. Thanks for
>> your interest in my pieces.
>>
>> It's been a while since I last seriously worked with Gnuplot,
>> so I am not really current about it anymore, and cannot
>> promise anything :-) Whoever is more up to date than me, please step in!
>>
>> This said, my understanding is that the actual code you are trying to
>> make
>> work is NOT the one visible at the plotshare urls you provided,
>> which is only an example.
>>
>> Is this correct? If yes, I (and I think the others too) would need to
>> see the WHOLE gnuplot code and data files that you tried to run, and
>> the complete error message you get. If I'm wrong, please explain. In
>> any case, we'd need to see at least the complete error message, to
>> continue.
>>
>> HTH,
>> Marco
>>
>> --
>> http://mfioretti.com
>
> Yes and no. The data is the same, and I tried to modify it but was
> getting things wrong. The plotshare url that is there works.
>
> [olivares@localhost tmp]$ cat gfga2015.plt
> #set term pngcairo size 800,600 transparent nocrop enhanced font
> 'Verdana,11'#define axis
> #set style line 11 lc rgb '#808080' lt 1
> #set border 3 back ls 11
> set tics nomirror
>
> #define key
> set key opaque
>
> # define grid
> #set style line 12 lc rgb '#808080' lt 0 lw 1
> #set grid back ls 12
>
> # define linecolors
> set style line 1 lc rgb '#0060ad' pt 2 ps 1 lt 1 lw 2 # --- blue
> set style line 1 lc rgb '#8b1a0e' pt 1 ps 1 lt 1 lw 2 # --- red
> set style line 2 lc rgb '#5e9c36' pt 6 ps 1 lt 1 lw 2 # --- green
>
> #set key bottom right
>
> set xlabel 'Game '
> set ylabel 'Goals scored'
> #set xrange [0:1]
> #set yrange [0:1]
> set grid
> set xdata time
> set timefmt "%Y%m%d"
> set xtics border in scale 1,0.5 rotate by -90 nomirror offset character
> 0, 0, 0
>
> plot 'gfga2015.dat' u 1:2 t 'Grulla Goals Scored' w lp ls 1,
> 'gfga2015.dat' u 1:3 t 'Opponents Goals' w lp ls 2
> [olivares@localhost tmp]$ cat gfga2015.dat
> # Date GF GA#Opponent
> 20150103 0 10 # Edinburg Vela
> 20150106 1 0 # Zapata
> 20150113 2 0 # Lyford
> 20150116 0 0 # Roma
> 20150120 0 3 # Mercedes
> 20150123 1 2 # Laredo Nixon
> 20150203 8 1 # Zapata
> 20150210 1 9 # Hidalgo
> 20150213 3 1 # Raymondville
> 20150216 1 0 # Monte Alto
> 20150220 0 0 # Zapata
> 20150226 0 4 # Hidalgo
> 20150306 2 2 # Raymondville
> 20150317 6 1 # Monte Alto
> 20150326 3 0 # Port Isabel
> 20150403 0 7 # Rockport-Fulton
>
> But I changed it to the above with the dates and it works, but the dates
> don't get formated like I would like. Also our games are on Tues and
> Fridays of every week except on tournaments and scrimmages, I wanted to
> change the code to represent that, and no matter how much I try I get
> tics at two or three spaces using part of the examples, ie.,
>
> set xtics format "%b %d"
>
> set xtics "20110105", 259200, "20110430"
>
> 259200 for 3 days difference
> 172800 for 2 days tics apart and so on.
>
>
> I add this to the script and I get different results, If I include tics
> at 1 unit apart, then thing get messy. I want to look at a nice graph.
> The one at url
>
> http://plotshare.com/index.ws/plot/338384601
>
> I got it to work on my desktop, but I do not know enough of gnuplot for
> it to just plot on top of quadrant 1 and not go below. Here's the code.
>
> [olivares@localhost tmp]$ cat 2015gfga.plt
> #set terminal postscript eps color solid
> set border linewidth 1.5
> set style histogram errorbars linewidth 1.5
> set style data histograms
> set style fill solid 1 border -1
> set ylabel "Goals Scored" font "Helvetica,16"
> set xtics border in scale 1,0.5 rotate by -90 nomirror offset character
> 0, 0, 0
> #set xtics border in scale 1,0.5 rotate by -45 nomirror offset character
> 0, 0, 0
> set grid
> #set xdata time
> #set timefmt "%Y%m%d"
> #set xtics ( 'Edinburg Vela' 20150103, 'Zapata' 20150106, 'Lyford'
> 20150113, 'Roma' 20150116, 'Mercedes' 20150120, 'Laredo Nixon' 20150123,
> 'Zapata' 20150203, 'Hidalgo' 20150210, 'Raymondville' 20150213, 'Monte
> Alto' 20150217, 'Zapata' 20150220, 'Hidalgo' 20150227, 'Raymondville'
> 20150306, 'Monte Alto' 20150317, 'Port Isabel' 20150326, 'Rockport
> Fulton' 20150403 ) rotate by 90 right
> set ytics 1 nomirror
> set key top left
> #Start of user script
> #---------------------
> ExtData1 = '2015gfga.dat'
> plot '2015gfga.dat' using 3:2:xtic(1) title col lc rgb '#084594',
> '2015gfga.dat' using 2:3:xtic(1) title col lc rgb '#f6e8c3'
> [olivares@localhost tmp]$ cat 2015gfga.dat
> Test Opponents Grulla Opponents
> 1-Edinburg-Vela 0 10
> 2-Zapata 1 0
> 3-Lyford 2 0
> 4-Roma 0 0
> 5-Mercedes 0 3
> 6-Laredo-Nixon 1 2
> 7-Zapata 8 1
> 8-Hidalgo 1 9
> 9-Raymondville 3 1
> 10-Monte-Alto 1 0
> 11-Hidalgo 0 4
> 12-Raymondville 2 2
> 13-Monte-Alto 6 1
> 14-Port-Isabel 3 0
> 15-Rockport-Fulton 0 7
> [olivares@localhost tmp]$
>
> I would like to change the numbers 1 to 20150103 display it along with
> the opponent, but things get messy so my best guess would be to just
> format it manually instead of experimenting things out. If anyone can
> help me fix/adjust the code so that It just prints the bar graphs of
> opponents goals vs our goals and not go below to quadrant 3 please let me
> know.
>
> Best Regards,
>
>
> Antonio
I replied to Marco and thought that I automagically replied to the list. I got it to work by manually changing the data with the dates:
2015gfga.dat
--------------------------------
Test Opponents Grulla Opponents
2015/01/03-Edinburg-Vela 0 10
2015/01/06-Zapata 1 0
2015/01/13-Lyford 2 0
2015/01/16-Roma 0 0
2015/01/20-Mercedes 0 3
2015/01/23-Laredo-Nixon 1 2
2015/02/03-Zapata 8 1
2015/02/10-Hidalgo 1 9
2015/02/13-Raymondville 3 1
2015/02/17-Monte-Alto 1 0
2015/02/20-Zapata 0 0
2015/02/26-Hidalgo 0 4
2015/03/06-Raymondville 2 2
2015/03/17-Monte-Alto 6 1
2015/03/26-Port-Isabel 3 0
2015/04/03-Rockport-Fulton 0 7
then modified 2015gfga.plt and added a range
set yrange [0:10]
will fix the graph to what I would like
[olivares@localhost tmp]$ cat 2015gfga.plt
---------------------------------------------------
#set terminal postscript eps color solid
set border linewidth 1.5
set style histogram errorbars linewidth 1.5
set style data histograms
set style fill solid 1 border -1
set ylabel "Goals Scored" font "Helvetica,16"
set xtics border in scale 1,0.5 rotate by -90 nomirror offset character 0, 0, 0
#set xtics border in scale 1,0.5 rotate by -45 nomirror offset character 0, 0, 0
set grid
#set xdata time
#set timefmt "%Y%m%d"
#set xtics ( 'Edinburg Vela' 20150103, 'Zapata' 20150106, 'Lyford' 20150113, 'Roma' 20150116, 'Mercedes' 20150120, 'Laredo Nixon' 20150123, 'Zapata' 20150203, 'Hidalgo' 20150210, 'Raymondville' 20150213, 'Monte Alto' 20150217, 'Zapata' 20150220, 'Hidalgo' 20150227, 'Raymondville' 20150306, 'Monte Alto' 20150317, 'Port Isabel' 20150326, 'Rockport Fulton' 20150403 ) rotate by 90 right
set ytics 1 nomirror
set key top left
#Start of user script
#---------------------
ExtData1 = '2015gfga.dat'
plot '2015gfga.dat' using 3:2:xtic(1) title col lc rgb '#084594', '2015gfga.dat' using 2:3:xtic(1) title col lc rgb '#f6e8c3'
I had in the last line
plot 'ExtData1' using 3:2:xtic(1) title col lc rgb '#084594', '' using 2:3:xtic(1) title col lc rgb '#f6e8c3'
and gnuplot was reporting an error. I modified it to above and removed ExtData1 reference and it worked.
I tried to set the xtics manually and change them according to Marco's reference, but the graph did not refect all the games so I modified the data file and added the date and the opponent and then modified the range to prohibit the line going below and keep everything in quadrant I. If anyone has a nicer way to make the graph look better, or format it using something else please help. I would like for our athletes to see what we need to work on the Goal Differential and not allow too many goals against us.
Best Regards,
Antonio
____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!
8 years, 3 months
Scroll Bars not Working Properly in F22 Applications in KDE
by Stephen Morris
I have an issue certain applications not displaying the scroll bars
properly.
I am using the upstream Nightly version of Firefox and the upstream
Daily version of Thunderbird. Both of these display the vertical scroll
bar permanently, but neither of them display the top and bottom arrows.
Another application I have looked at is Gedit which only displays the
vertical scroll bar when you mouse over it, but it doesn't display the
top and bottom arrows either. I get these issues irrespective of what
KDE theme I use.
Looking at the KDE Settings App it displays the scroll bars with top and
bottom arrows fine.
The Kwin script to force window decorations on GTK+ apps is active.
Does anyone have any ideas why the above mentioned applications don't
show the arrows but the KDE Settings Application does show the arrows,
and whether or not there is anyway to rectify it? From memory I did not
have this issue in F21 and F22 was installed from scratch from the live
DVD because the F21->F22 upgrade process does not work on my system (the
upgrade process wants to run the install from the Grub menu and on my
system my wireless network is not active at that point and cannot be
made active because of required drivers).
regards,
Steve
8 years, 4 months
Strange sendmail behaviour
by Stephen Davies
I am trying to change my sendmail configuration to deliver all "user unknown"
emails to a specific account (baduser).
I added the DL definition to sendmail.mc and generated test.cf.
Then I tested this new config using:
echo who | sendmail -v -Ctest.cf noone
and the email was correctly delivered to the defined account.
I then renamed test.cf to sendmail.cf (in /etc/mail) and retested with:
echo what | sendmail -Csendmail.cf noone
and again the email was delivered to the baduser account.
Happy with this, I then restarted sendmail (via systemctl) and sent yet
another email to an invalid account.
Instead of the email being delivered to baduser, I received a 550 5.1.1 user
unknown reject email.
What have I missed here.
(Fedora 22 & sendmail 8.14.7/8.13.3)
--
=============================================================================
Stephen Davies Consulting P/L Phone: 08-8177 1595
Adelaide, South Australia. Mobile:040 304 0583
8 years, 4 months
smartd errors
by Paolo Galtieri
Folks,
recently I have started seeing these messages in /var/log/messages
Oct 27 10:26:13 jackstraw smartd[1177]: Device: /dev/sde [SAT], 16
Currently unreadable (pending) sectors
Oct 27 10:26:13 jackstraw smartd[1177]: Device: /dev/sde [SAT], 16
Offline uncorrectable sectors
which are mounted as follows
/dev/sde1 on /media/NSM/NSM-SENSOR-1 type ext4
(rw,nosuid,nodev,noexec,noatime,seclabel,data=ordered)
/dev/sde2 on /media/NSM/NSM-SENSOR-2 type ext4
(rw,nosuid,nodev,noexec,noatime,seclabel,data=ordered)
I have unmounted the filesystems and run fsck on them and fsck reports
no errors.
[pgaltieri@jackstraw ~]$ sudo fsck /dev/sde2
fsck from util-linux 2.26.2
e2fsck 1.42.12 (29-Aug-2014)
NSM-SENSOR-2: clean, 11/45498368 files, 2905980/181964288 blocks
[pgaltieri@jackstraw ~]$ sudo fsck /dev/sde1
fsck from util-linux 2.26.2
e2fsck 1.42.12 (29-Aug-2014)
NSM-SENSOR-1: clean, 32/46080000 files, 2993510/184320000 blocks
It only reports errors on this drive.
Should I be concerned about what smartd is saying? How do I, if
possible, correct this?
Paolo
8 years, 4 months
dnf system-upgrade fails with key verification
by Sam Varshavchik
One upgrade to F23 succeeded. The second server fails, repeatedly with
"dnf system-upgrade --releasever 23 download" resulting in:
…
[SKIPPED] zukitwo-gtk3-theme-0.0.2-1.fc23.noarch.rpm: Already
downloaded
[SKIPPED] zukitwo-gtk2-theme-0.0.2-1.fc23.noarch.rpm: Already
downloaded
warning: /var/lib/dnf/system-upgrade/kernel-core-4.2.5-300.fc23.x86_64.rpm:
Header V3 RSA/SHA256 Signature, key ID 34ec9cba: NOKEY
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-
gpg/RPM-GPG-KEY-fedora-x86_64 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-
KEY-fedora-x86_64]
The downloaded packages were saved in cache till the next successful
transaction.
You can remove cached packages by executing 'dnf clean packages'.
Googling around doesn't find anything useful.
8 years, 5 months
VNC and sound
by Chris Kottaridis
I am running Fedora 22 on a machine that is off in a closet and am using
VNC to access it from a machine at my desk. I followed the instructions
in System Admin guide chapter 8:
https://docs.fedoraproject.org/en-US/Fedora/22/html/System_Administrators...
I successfully got Tiger VNC server working. it was quite easy. Cudos to
everyone involved to make that so simple.
My VNC client is Windows TigerVNC version 1.5.
I don't seem to get sound. It doesn't seem to come out on my VNC client
or on the VNC server's sound card. My remote machine is close enough
that I could run a wire from it's sound card to the speakers on my desk
if that is easier. But, right now I can;t get the sound to come out the
VNC server sound card.
Any pointers or recommendations are appreciated.
Thanks
Chris Kottaridis
8 years, 5 months
encrypting /home partition post-install
by Ranjan Maitra
Hi,
Is it possible to encrypt a /home partition on F23 without losing the data? If so, what is the recommended method?
Many thanks and best wishes,
Ranjan
--
Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses.
____________________________________________________________
Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.
Check it out at http://mysecurelogon.com/manager
8 years, 5 months
Disabling CPU throttling on fedora22
by Alex
Hi,
I have a fedora22 SuperMicro system operating as a mail server that
has no need to have the CPU throttled. I'm having trouble figuring out
how to disable the throttling. There also doesn't appear to be any
recent threads discussing this previously.
It appears some are running at full speed while others are not:
# cat /proc/cpuinfo |grep Hz
model name : Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
cpu MHz : 1875.187
model name : Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
cpu MHz : 2188.687
model name : Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
cpu MHz : 2399.906
model name : Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
cpu MHz : 1475.812
model name : Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
cpu MHz : 2075.437
model name : Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
cpu MHz : 2340.750
model name : Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
cpu MHz : 1262.062
model name : Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
cpu MHz : 2111.812
I've searched for the programs I've used in the past, including
cpuspeed and cpufreq-* but they appear to no longer exist.
I've looked in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
and all are set to "performance".
What is the procedure for disabling CPU throttling permanently?
Thanks,
Alex
8 years, 5 months
Firefox and Fedora 23
by Jeffrey Ross
I think I'm running into this:
https://bugzilla.redhat.com/show_bug.cgi?id=439598
Whenever I restart firefox the language used for spelling reverts back to the previous value of English(Malawi) even though I change it to en-US.
Also when restarting Firefox I get the message saying that I haven't restarted firefox in a while and it asks me if I want to reset my configuration. It doesn't matter if I say yet or no the message comes up next time I restart.
Suggestions or am I better off switching to another browser (Chrome) or installing Firefox from a different location?
Thanks, Jeff
8 years, 5 months