Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1533

label location

Received by 10.66.86.138 with SMTP id p10mr2955309paz.14.1355128221919; Mon, 10 Dec 2012 00:30:21 -0800 (PST)
Received by 10.50.191.131 with SMTP id gy3mr2174975igc.1.1355128221718; Mon, 10 Dec 2012 00:30:21 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!kr7no7128676pbb.0!news-out.google.com!s9ni37311pbb.0!nntp.google.com!kr7no7128672pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Mon, 10 Dec 2012 00:30:21 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=67.174.241.78; posting-account=Hw67VgoAAABfy9k1CNFLMCW6Ll7hyf6w
NNTP-Posting-Host 67.174.241.78
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <1e161196-d823-4c0f-a834-c233a456024f@googlegroups.com> (permalink)
Subject label location
From priimak@gmail.com
Injection-Date Mon, 10 Dec 2012 08:30:21 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.graphics.apps.gnuplot:1533

Show key headers only | View raw


Hi.
 
I have a small problem. I have a task where I am solving DE and plotting results into many many png files for different values of some control parameter. Then I concatenate these many files into a movie using mencoder. To differentiate different plots within the picture I overlay labels over each plot and change their ( labels ) locations with change of control parameter so that label sits right next to the plot that it corresponds to. The problem is that labels do not seem to move smoothly, but move in the rather jugged fashion. It looks as if it jumps to the nearest pixel or sometime even skipping couple of pixels. Here is a link to the example generated file where you easily see jugged motion. 

    http://www.youtube.com/watch?v=rEeCOzN__3k

Here is gnuplot script

$ cat make-example-movie.gnuplot
set terminal pngcairo size 1280,720 enhanced font 'Verdana,10'
set style line 1 lc rgb '#0060ff' lt 1 lw 2 # --- blue
total_frames = 1200 # makes 20 seconds movie at 60 frames/sec
system('rm -rf frames; mkdir -p frames')
do for [frame=1:total_frames] {
 set output sprintf("frames/frame%04d.png", frame)
 print sprintf("frame%04d.png", frame)
 unset key
 set xtics 1.0
 set ytics 0.1
 set xrange [-4:4]
 set yrange [-1:1]   
 set label 1 "ABC" at 0.8,frame*0.0003 left front font 'Verdana Bold,10' 
 plot (1-frame*0.0002)*sin(x*(1+frame*0.001)) w l ls 1
}
system('mencoder mf://frames/*.png -mf fps=60:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o problem.avi')

And to run this script I use gnuplot version 4.6.patchlevel 1

Is there anything that can be done to remedy this problem?
Should I ask in the gnuplot development newsgroup?

--
Dmitri Priimak

Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar


Thread

label location priimak@gmail.com - 2012-12-10 00:30 -0800

csiph-web