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, 2 months
Issues with install F23 MATE desktop
by Chris Adams
I have a brand-new Dell Precision workstation, on which I'm trying to
install Fedora 23 (with my preferred desktop environment, MATE), which
is turning into the most frustrating Linux install I've experienced in a
long time (and I've been using Linux since before Red Hat existed).
I started with Fedora-Workstation-netinst-x86_64-23 on a thumb drive. I
booted, selected automatic partitioning and MATE, and it started
downloading RPMs. When it finished downloading, it rebooted.
Apparently, there's a conflict between release and updates on who owns
/etc/xdg/menus/mate-preferences-categoris.menu, and anaconda just
crashes and reboots (not even a traceback) on an install transaction
failure.
After a few passes through that before I figured out anaconda was not
going to install MATE (with frustrating waits for downloads each time),
I gave up and did a minimal install. Then I did a dnf groupinstall
MATE, and that downloaded all the RPMs, then gave me the error about the
file conflict. I tried to exclude one of the choices, use --best, etc.,
and nothing would solve it.
Also, when "dnf groupinstall foo" is run, even if it fails, dnf then
thinks the group is installed (and so a repeated groupinstall does
nothing). I had to do a groupremove first.
I just manually installed the RPMs from the dnf cache to get around the
MATE brokenness, and then got systemd to do a graphical boot.
Now, when I get to the graphical login, my USB is dead. I can boot
single-user mode and the keyboard works fine; as soon as the graphical
login loads, USB appears dead (keyabord is like it is powered off, no
Numlock, Capslock, etc.). Tried unplugging keyboard, moving it to
different USB ports (directly on the computer instead of hub), etc. with
no result. The fact that the keyboard works in single-user mode shows
there's no hardware problem, Linux USB issue, etc.
At this point, I guess I'll roll back and try Fedora 22. If I ever get
a working desktop, I'll try to file some bugs I guess. I found a BZ
about anaconda that appears to match my problem (1287841). That doesn't
explain the MATE conflicts in the repos, dnf groupinstall fail, or
disappearing USB though.
--
Chris Adams <linux(a)cmadams.net>
8 years, 3 months
Cannot access my phone storage from fc22
by JD
$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
** daemon still not running
error: cannot connect to daemon
$ ps -ef | grep adb
jd 19967 1 0 19:06 pts/3 00:00:00 adb -P 5037 fork-server
server
jd 19983 7405 0 19:09 pts/3 00:00:00 grep --color=auto adb
Android is 4.4.2 (nothing newer is available for my phone.
Developer option set. usb debugging enabled.
yet, when I plug my phone to usb on laptop,
laptop does not mount anything, nor does any icon
appear on the panel as a result of plugging in.
Also, the phone does not pop up a screen asking me
to enable USB in data mode or any other mode.
Any ideas?
8 years, 3 months
XFCE power manager no longer turns off the monitor
by Sam Varshavchik
At some point recently, my monitor stopped getting turned off after the
prescribed period of inactivity. I'm using the XFCE power manager, and its
settings remain untouched.
Manually executing "xset dpms force off" turns the monitor off normally.
"xset q" shows that everything appears to be in order:
DPMS (Energy Star):
Standby: 300 Suspend: 360 Off: 420
DPMS is Enabled
Monitor is On
So, what else can I check?
8 years, 3 months
Looking for a printer
by thomas cameron
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Howdy, all -
I have an Epson Workforce 600 printer, and it's actually a great
printer except for one thing: it goes through ink cartridges like an
out of control tweaker in a room full of meth.
I need a printer with the following features, and I'd love any
advice/experience you have had:
1) networked, works with Linux (the kids and me) and Windows (wife)
2) color
3) fast print speed (not as high a priority, but nice)
4) prefer laser printer, as opposed laser jet
I had an HP LaserJet 4, and it was awesome, but it was not color and
it finally died. I'm looking for that sort of experience, just newer.
Any suggestions?
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlaFd8YACgkQmzle50YHwaDn/QCfQ7mWek8j56iKq6EfdISyBtTc
lc8AoKtt7WeG0WOCrWusZDNA47SVi7e7
=He9L
-----END PGP SIGNATURE-----
8 years, 3 months
How to change id and group to the user
by Walter Cazzola
Dear Experts,
as you probably know (from another thread) I've just installed Fedora 23 on
my dell m6800 and I have a new problem.
I have let the installer create my user and it has given it uid 1000 and
gid 1000. This is the standard behavior and I'm used to change it by
manually edit /etc/group and /etc/passwd but this time this behavior has
broken my user. I can't enter at the kde login (before in the splash screen
it was asking for the password of my user than asking for a password but no
user was specified and I got a login erro when I use my passowrd).
Also removing the user with userdel and readd it with useradd didn't solve
the issue. The only fix I found was to reinstall the whole system. But now
I still have the need to change the user uid and its group number. Which is
the correct way?
Thank you again for the help and Merry Christmas
Walter
--
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, 3 months
sendmail bombarding logs
by Sudhir Khanger
Hi,
I ran journalctl -b to see what is causing bumblebee to fail. I see the log
is huge. There are thousands of line and the file is as big as 5.1 mb. I see a
sendmail line over and over. I don't think I use sendmail or what installed
it.
Dec 31 15:16:06 fedora crond[1188]: /usr/sbin/sendmail: line 64:
/home/sudhir/.esmtp_queue/DPfrmBuQ/mail: No such file or directory
Here is the full log https://cloud.wyffy.com/index.php/s/wTEhYPA6lS4WfD3
--
Regards,
Sudhir Khanger,
sudhirkhanger.com.
8 years, 3 months
F23 on Raspberry Pi 2
by Suvayu Ali
Hi,
I was looking at how to get Fedora on an Rpi 2, but then I realised the
latest Pidora version is an F20 based RC from 2014. Is this all we
have? Maybe someone knows a way to install from the latest ARM images.
The official ARM installer does not seem to support Rpi. This is the
list:
- A10-OLinuXino-Lime
- A20-OLinuXino-Lime
- A20-OLinuXino-Lime2
- A20-OLinuXino_MICRO
- am335x_boneblack
- Bananapi
- Bananapro
- cm_fx6
- Cubieboard
- Cubieboard2
- Cubietruck
- jetson-tk1
- Linksprite_pcDuino
- Linksprite_pcDuino3
- Linksprite_pcDuino3_Nano
- Mele_A1000
- Mini-X
- mx6cuboxi
- none
- novena
- omap4_panda
- omap5_uevm
- riotboard
- trimslice
- wandboard
I tried none, it doesn't install U-boot and then the Pi doesn't boot.
Thanks for any other ideas.
Cheers,
--
Suvayu
Open source is the future. It sets us free.
8 years, 3 months