Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1533
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2012-12-10 00:30 -0800 |
| Message-ID | <1e161196-d823-4c0f-a834-c233a456024f@googlegroups.com> (permalink) |
| Subject | label location |
| From | priimak@gmail.com |
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
label location priimak@gmail.com - 2012-12-10 00:30 -0800
csiph-web