Thursday, September 1, 2011

Gnuplot advanced background color (1)

An alternative way to realize a linear gradient colored background is using the image plotting style. Let us first look at our final script and then explain it.
reset
set table "back.dat"	#creat a data file
set isosample 2,200	#containing linear
splot y			#gradient color 
unset table		#information

splot y	#Get the max value of z
max=GPVAL_Z_MAX

set term png
set output "backgradient2.png"
set multiplot
#plot the background
set lmargin at screen 0
set rmargin at screen 1
set bmargin at screen 0
set tmargin at screen 1
unset border
unset tics
set palette defined(0"white",max"#ccffcc")  #set gradient color
plot "back.dat" w ima
#plot the curve of sin(x)
set border 1+2+4+8
set tics
set lmargin
set rmargin
set bmargin
set tmargin
plot sin(x) w l lw 2 lc rgb"black" notitle
unset multiplot
!del back.dat
#in unix system the above command may should be change to "!rm back.dat"
In this script, firstly we produce a date file "back.dat" which contain linear gradient color information. Then in a multiplot environment we plot the background using command '''plot "back.dat" w ima''' and figure of sin(x) using '''plot sin(x) w l lw 2 lc rgb"black" notitle'''. Before plotting the background we set l,r,b,tmargin to be 0,1,0,1 respectively, thus the background is filled the whole picture, and border and tics are unset. After that all of border,margins and tics are set again. "! del back.dat" is used to delete temporary data file back.dat. backgradient2.png is show below:

Linear gradient colored background
 

42 comments:

  1. Awesome and interesting article. Great things you've always shared with us. Thanks. Just continue composing this kind of post. 먹튀사이트

    ReplyDelete
  2. i was just browsing along and came upon your blog. just wanted to say good blog and this article really helped me 안전놀이터

    ReplyDelete
  3. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking 사설토토

    ReplyDelete
  4. Good post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it! auto glass san diego

    ReplyDelete
  5. This is a good post. This post gives truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. Thank you so much. Keep up the good work used motorcycles for sale

    ReplyDelete
  6. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post 사설토토

    ReplyDelete
  7. of it is popping it up all over the internet without my permission. Do you know 먹튀검증

    ReplyDelete
  8. I think other site proprietors should take this site as an model, very clean and fantastic user genial style and design, let alone the content. You’re an expert in this topic! 먹튀검증

    ReplyDelete
  9. Hi there i amm kavin, its my first occasion to commenting anywhere,
    when i read this paragraph i thought i could also
    create comment due to this sensible post. 부산오피


    ReplyDelete
  10. Many thanks for the article, I have a lot of spray lining knowledge but always learn something new. Keep up the good work and thank you again. 메이저사이트모음


    ReplyDelete
  11. Youre so right. Im there with you. Your weblog is definitely worth a read if anyone comes throughout it. Im lucky I did because now Ive received a whole new view of this. 메이저사이트추천


    ReplyDelete
  12. That's a great article! The neatly organized content is good to see. Can I quote a blog and write it on my blog? My blog has a variety of communities including these articles. Would you like to visit me later? 토토사이트추천


    ReplyDelete
  13. Hello, I read the post well. 안전놀이터추천 It's a really interesting topic and it has helped me a lot. In fact, I also run a website with similar content to your posting. Please visit once


    ReplyDelete
  14. Pretty great post. I just stumbled upon your weblog and wished to say that I have really enjoyed browsing your weblog posts. In any case I’ll be subscribing to your rss feed and I am hoping you write again very soon! Feel free to visit my website;
    야설

    ReplyDelete
  15. This is an awesome motivating article.I am practically satisfied with your great work.You put truly extremely accommodating data. Keep it up. Continue blogging Hoping to perusing your next post. Feel free to visit my website;
    일본야동

    ReplyDelete
  16. This is an awesome motivating article.I am practically satisfied with your great work.You put truly extremely accommodating data. Keep it up. Continue blogging Hoping to perusing your next post. Feel free to visit my website; 국산야동

    ReplyDelete
  17. Youre so cool! I dont suppose Ive read something such as this before. So nice to find somebody with authentic applying for grants this subject. Feel free to visit my website;

    한국야동

    ReplyDelete
  18. Papers get to operate through Bible helpers and also plagiarism checkers to be certain that the author did not find idle at any stage in the process. Language inconsistencies won't be a thing with your newspapers as the specialists of our school paper writing support are passionate about writing and are always excited to strike you with something fresh. By: 안전놀이터


    ReplyDelete
  19. Nice information, you write very nice articles, I visit your website for regular updates. 파워볼

    ReplyDelete
  20. That’s good articles also these teachers amazing, thanks for that quality articles.
    릴게임

    ReplyDelete
  21. I will recommend your website to everyone. You have a very good gloss. Write more high-quality articles. I support you. 카지노

    ReplyDelete
  22. I simply wish to give you a huge thumbs up for your excellent info you’ve got right here on this post.
    I am coming back to your site for more soon. 온라인카지노

    ReplyDelete
  23. Your ideas inspired me very much. 바카라사이트 It's amazing. I want to learn your writing skills. In fact, I also have a website. If you are okay, please visit once and leave your opinion. Thank you.


    ReplyDelete
  24. I’m thinking some of my readers might find a bit of this interesting. Do you mind if I post a clip from this and link back? Thanks 안전놀이터


    ReplyDelete
  25. I'm impressed, I must say. Actually rarely can i encounter a blog that's both educative and entertaining, and without a doubt, you could have hit the nail about the head. Your idea is outstanding; the thing is something that too few individuals are speaking intelligently about. We are delighted that we came across this around my try to find some thing with this.메이저사이트


    ReplyDelete
  26. 메이저놀이터추천December 2, 2021 at 10:32 PM

    I'm so happy to finally find a post with what I want. 메이저놀이터추천 You have inspired me a lot. If you are satisfied, please visit my website and leave your feedback.


    ReplyDelete
  27. When I read your article on this topic, the first thought seems profound and difficult. There is also a bulletin board for discussion of articles and photos similar to this topic on my site, but I would like to visit once when I have time to discuss this topic. sòng bạc


    ReplyDelete
  28. Excellent read, I just passed this onto a friend who was doing a little research on that. And he actually bought me lunch as I found it for him smile Therefore let me rephrase that: Thank you for lunch. 룰렛".


    ReplyDelete
  29. I finally found what I was looking for! I'm so happy. 우리카지노


    ReplyDelete
  30. webgirls When it comes to fighting yeast infections, sufferers often have their function remove to them. It is because candida albicans can certainly come to be long-term and continuous. With that in mind, in this post, we are going to present a variety of some of the best confirmed candida treatment and reduction recommendations all around.

    ReplyDelete
  31. Hey, what a brilliant article I have found and believed me I have been locating for this similar sort of post for past a week and also barely discovered this. Thanks extremely a lot and I will search for more postings from you.
    Archives
    eprimefeed.com
    Latest News
    Economy
    Politics
    Tech
    Sports
    Movies
    Fashion

    ReplyDelete
  32. https://gameeffect.xyz Many individuals have liked this game of baseball for years. There are actually fans worldwide, from dedicated little-leaguers to expire-tough spectators. This article has tips to show how pleasant baseball happens to be.

    ReplyDelete
  33. https://gamebegin.xyz You are able to practice by itself. A pitching device permits you to set up the rate of the golf ball. By launching a number of baseballs into the device, you may practice reaching without the need for a pitcher. This electronic digital unit is ideal for these who want to practice baseball on your own. Pitching models may be gathered at your community wearing merchandise retail store.

    ReplyDelete
  34. 仮想通貨 オンラインカジノ You can see them on magazines as well as on Television set, people who appear like their arms and thighs will explode his or her muscles are incredibly huge! There is not any need for you to take your body for that level in the event you don't desire to, because the simple strategies on this page will help you create muscle tissue in a healthful approach.

    ReplyDelete
  35. https://gamezoom.xyz Finding a workout spouse can substantially improve your muscle tissue-constructing outcomes. Your companion can be quite a important way to obtain motivation for sticking with your regular workout period, and pressing one to optimize your initiatives as you figure out. Developing a reliable partner to work through with will also help help keep you harmless since you will always use a spotter.

    ReplyDelete
  36. 메이저놀이터April 5, 2022 at 3:06 AM

    I’m very pleased to discover this site. I want to to thank you for ones time for this particularly wonderful read!! I definitely savored every part of it and i also have you saved as a favorite to see new information on your blog. 메이저놀이터


    ReplyDelete

  37. I’m definitely loving the information.
    I’m book-marking and will be tweeting this to my followers!
    온라인카지노

    This is very interesting, You’re a very skilled blogger
    검증카지노

    ReplyDelete
  38. Thank you for making something worth reading.
    블랙잭사이트

    Thank you for making something worth reading.
    블랙잭사이트

    ReplyDelete

Creative Commons License
Except as otherwise noted, the content of this page is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.