Friday, November 30, 2012

Plot a pie chart using gnuplot

If your gnuplot version is not lower than 4.4, then plotting a pie chart can be done with command "set object circle...". The following is an example.

reset
set term postscript eps color enhanced size 5cm,5cm
set output "pie_chart.eps"

set size square
set style fill solid 1.0 border -1

set object 1 circle at screen 0.5,0.5 size \
  screen 0.45 arc [0   :50  ] fillcolor rgb "red" front
set object 2 circle at screen 0.5,0.5 size \
  screen 0.45 arc [50  :150] fillcolor rgb "orange" front
set object 3 circle at screen 0.5,0.5 size \
  screen 0.45 arc [150:220] fillcolor rgb "forest-green" front
set object 4 circle at screen 0.5,0.5 size \
  screen 0.45 arc [220:360] fillcolor rgb "dark-magenta" front

#plot a white line, i.e., plot nothing
unset border
unset tics
unset key
plot x with lines lc rgb "#ffffff"
set output

Fig.1 Plot a pie chart using gnuplot

If you think setting of the position, size and arc manually is very tedious, you may write a script with any programming language.

Follow this link to see a new simpler method to plot a pie chart.


64 comments:

  1. how to set labels for each sector?

    ReplyDelete
  2. IOT Training in Bangalore - Live Online & Classroom
    IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.

    ReplyDelete
  3. Thanks a lot for sharing
    Having good health is what most people out there wants but can not achieve. some people takes buy ibogaine online AND buy weed online to get it.

    ReplyDelete
  4. Thanks for Valuable Information man, IT was Really helpful for me.

    Also, Please reach me for all types of loans - Personal loan at low interest rate in Bangalore

    Trust me Its Really Worth trying for Certified mobile service center in Marathahalli

    ReplyDelete
  5. I have enjoyed reading your post,it looks very attractive.Thanks for sharing some useful information.Tableau can help anyone see and understand their data.Get Tableau certification from our institute.
    Best tableau training institutes in Bangalore

    ReplyDelete
  6. When choosing a roofing contractors calgary to work with, experience, reputation and reliability is something homeowners must consider.

    ReplyDelete
  7. Thanks for sharing such informative peice of work ,Welcome to Glock Store ,a Discreet online depot where you can buy firearms and ammunition , Buy guns online ,
    buy ammo discreetly without monotonous deocumentations and ship to your prefered location with no hassle.We are FFL Dealers and stricktly follow the Regulations of the Gun Control Act(GCA).Purchasing Fireamrs and Ammunition online with caution has always been a long process of paperwork because of the inter/Intra state Laws controlling the buying and distribution.At Glock store online shop we cut the Gordian knot and deliver to your location with no hassle.We have a wide range of firearms and ammunition for sale ,buy Ammo such as shotguns,Long guns,Magazines, Optics and accesories which include Century Arms,Kel-Tec,
    Ruger,
    AR15,
    AK47,.Despite the perusal increase in surounding firearms,we issue uncomplicated paths to acquire Firearms for individual and or Family security.If you have ever asked yourself
    how to buy guns and ammunition online with ease and,safety then your question is answered once you are here.All you have to do is choose your firearms, optic, magazine,accessories and add to cart then proceed to check out. READ MORE on how to buy guns and ammunition online discreet.
    Pain management, pain medicine,buy pain medication and buy research chemicals, pain control or algiatry, is a branch of medicine employing an interdisciplinary approach for easing the suffering and improving the quality of life of those living with chronic pain,
    buy lipitor
    You can also buy weed online, buy cbd oil

    ReplyDelete
  8. Thanks for sharing such informative peice of work ,Welcome to our for Pinball machines ,At pinball machine for sale, we love fixing, customizing and selling all types pinball machine and have been doing it for over 20 years. With all the innovation and new pinball companies starting up, it’s great that we’re in the epicenter of pinball world, Chicago. Pinball machine manufacturers have been forming in Chicago from the earliest days of pinball. That’s probably why we’re able to find great vintage pinballs tor refurbish! Buy pinball machines online such as antique pinball machine,refurbished pinball machines ,stern pinball machine and many more.
    s

    ReplyDelete
  9. Marijuana—also called weed, herb, pot, grass, bud, ganja, Mary Jane, and a vast number of other slang terms—is a greenish-gray mixture of the dried flowers of Cannabis sativa.

    The main active chemical in marijuana is THC (delta-9-tetrahydrocannabinol), the psychoactive ingredient. The highest concentrations of THC are found in the dried flowers, or buds. When marijuana smoke is inhaled, THC rapidly passes from the lungs into the bloodstream and is carried to the brain and other organs throughout the body. THC from the marijuana acts on specific receptors in the brain, called cannabinoid receptors, starting off a chain of cellular reactions that finally lead to the euphoria, or "high" that users experience. Feeling of a relaxed state, euphoria, and an enhanced sensory perception may occur. With higher THC levels in those who are not used to the effects, some people may feel anxious, paranoid, or have a panic attack.
    Cannabis plant used for medical or recreational purposes. The main psychoactive part of cannabis is tetrahydrocannabinol, one of the 483 known compounds in the plant, including at least 65 other cannabinoids. 
    buy real weed online
    how to buy weed online
    buy legal weed online
    buy recreational weed online
    buy weed edibles online
    can i buy weed online
    buy medical weed online
    buy weed online canada
    buying weed online reviews
    buy weed online legit
    buy weed online without medical card
    buy weed seeds online canada
    order marijuana online
    order marijuana seeds online
    how to order marijuana online
    order marijuana online without a medical card
    can you order medical marijuana online
    order marijuana online

    ReplyDelete


  10. The vaping industry have always been on a varible caused by customers preference through the brand thy find confortable and safe consuming, With juul pods taking over the vape market, vapers with the high zeal to buy juul pods online and other thc vape cartridges frequently search for juul pods near me, cbd juul pods,juul compatible pods buy juul pods online, juul pod flavors, juul pods.A greater proportion of juul vapers have rated juul mango,juul mint and juul menthol as the best juul flavors among others, that not withstanding there are other pods which are juul compatible and refillable with vape juice.Are you loolking for a vape shop near me or near you to buy the best vape juice such as nicotin salts suitable for small devices, pod systems and vape mods?THC cartridges containing cbd vape oil brings you a great vaping experience.Though vaping cbd vape oil also help for canacer,its is the best option to use cbd oil for pain, cbd oil for cancer. To facilitate your online search to buy cbd oil online, search for cbd oil near me.Buying cheap vape juice online is very simple when you serach for vape store near me, vape shop near me.

    ReplyDelete
  11. Tack Köp legit piller online i sverige på Mundi Apotek

    Tack Köp legit piller online i sverige på   Scandinavia Apotek

    Tack Köp legit piller online i sverige på    battrehalsa-apotek 

    ReplyDelete
  12. I gotta favorite this website it seems very helpful .
    Buy Weed Online

    ReplyDelete
  13. Thank you so much for the post you do. I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job.
    Buy dmt vape juice online

    ReplyDelete
  14. Jungle boys is an award winning Marijuana brand from Los Angeles. The Jungle boys farm is an authorized and licenced kush grower and distributor.
    Jungle boys also comprise of a jungle boys clothing brand with fabrics such as hoodies, caps, t shirts and sucks.
    The Jungle boys kush strains are wwide spread across both sativa, hybrid and indica species. Jungle boys indica fire brands are usually recommended to patients with medical conditions such as insomnia.
    Jungle boys strains such as the Sin mints, Zack pie ,Jungle mints, Jungle boys,
    Jungle apples , Jungle boys frosted cake , Jungle boys hippy crasher and Motor breath are best sellers of the brand.
    buy Jungle boys online at wholesale prices from the Jungle boys farm.
    wifi cake
    wedding pie
    mac
    dosidos
    la cush cake
    wedding cake

    ReplyDelete
  15. You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant!
    buy smart buds online

    ReplyDelete
  16. I am always thought about this, thank you for putting up.buy bloom vape in usa

    ReplyDelete
  17. Thanks for your post. I’ve been thinking about writing a very comparable post over the last couple of weeks, I’ll probably keep it short and sweet and link to this instead if thats cool. Thanks.
    buy smart buds online

    ReplyDelete
  18. Your information was very clear. Thank you for sharing.
    Python Online Training

    ReplyDelete
  19. Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include.
    buy weed online

    ReplyDelete


  20. A point of practice are going to be this: If you're caught with a hitter pipe and no cannabis and that they charge you with a category A misdemeanor, you ought to get the hitter pipe tested by the crime lab in order that they can find a traceable amount of cannabis therefore the civil violation will "kick in" since the hitter pipe was found with but 10 grams of cannabis (the residue).
    Buy OG Kush Online

    ReplyDelete
  21. Very helpful blog post, explained everything very clearly, This blog really has all the info I was looking for. Thanks you for sharing. Pound of Weed

    ReplyDelete
  22. https://k2incenseonlineheadshop.com/
    info@k2incenseonlineheadshop.com
    k2incenseonlineheadshop Buy liquid incense cheap Buy liquid incense cheap For Sale At The Best Incense Online Shop

    ReplyDelete
  23. best synthetic herbal incense online store
    https://syntheticworldwide.com

    ReplyDelete
  24. There is noticeably big money to comprehend this. I suppose you’ve made specific nice points in functions also.online dispensary shipping worldwide

    ReplyDelete
  25. Buy California Driver’s License, license renewal online ca - US Driver’s License


    Here at Buy Documentation, you can buy fake documents at a fraction of a cost. We keep our prices low to meet the needs of all our customers.

    Buydocumentaion.com, We provide Best Quality Novelty Real and Fake IDs and Passport, Marriage Certificates and Drivers license online.

    https://buydocumentation.com/document/fake-covid-test-buy-covid-19-test-results-online/

    https://buydocumentation.com/buy-real-drivers-license/

    https://buydocumentation.com/buy-real-id-cards/

    https://buydocumentation.com/canada-visa/

    https://buydocumentation.com/

    ReplyDelete
  26. I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. Livrari flori cluj

    ReplyDelete

  27. https://liquidincenseshop.com/ sales@liquidincenseshop.com
    Buy liquid incense cheap ,Incense for sale online offers ,Liquid Spice ,k2 chemical spray for sale , where to buy k2 near me ,K2 E-LIQUID. liquid k2 , k2 spice spray ,herbal incense for sale , Liquid Herbal Incense, cheap herbal incense , strong herbal incense for sale , Liquid k2 on paper , Liquid K2 , Legal High Incense , liquid herbal incense for sale, Order Strong Liquid Incense , Herbal Incense For Sale , Buy Vape Cartridges , Cheap K2 Spice , Legal Potpourri , Buy Herbal Incense Discrete , Legit Herbal Incense Website , Liquid Incense Overnight Delivery , Buy Potpourri With Credit Cards , buy herbal incense with debit card, , Where To Order Liquid Incense Online , Buy Liquid Incense With Bitcoin , Buy K2 Liquid Incense On Paper In USA , Strongest Incense In USA

    https://k2incenseonlineheadshop.com/ sales@k2incenseonlineheadshop.com
    Buy liquid incense cheap ,Incense for sale online offers ,Liquid Spice ,k2 chemical spray for sale , where to buy k2 near me ,K2 E-LIQUID. liquid k2 , k2 spice spray ,herbal incense for sale , Liquid Herbal Incense, cheap herbal incense , strong herbal incense for sale , Liquid k2 on paper , Liquid K2 , Legal High Incense , liquid herbal incense for sale, Order Strong Liquid Incense , Herbal Incense For Sale , Buy Vape Cartridges , Cheap K2 Spice , Legal Potpourri , Buy Herbal Incense Discrete , Legit Herbal Incense Website , Liquid Incense Overnight Delivery , Buy Potpourri With Credit Cards , buy herbal incense with debit card, , Where To Order Liquid Incense Online , Buy Liquid Incense With Bitcoin , Buy K2 Liquid Incense On Paper In USA , Strongest Incense In USA

    https://k2incenceshop.com/ sales@k2incenceshop.com
    Buy liquid incense cheap ,Incense for sale online offers ,Liquid Spice ,k2 chemical spray for sale , where to buy k2 near me ,K2 E-LIQUID. liquid k2 , k2 spice spray ,herbal incense for sale , Liquid Herbal Incense, cheap herbal incense , strong herbal incense for sale , Liquid k2 on paper , Liquid K2 , Legal High Incense , liquid herbal incense for sale, Order Strong Liquid Incense , Herbal Incense For Sale , Buy Vape Cartridges , Cheap K2 Spice , Legal Potpourri , Buy Herbal Incense Discrete , Legit Herbal Incense Website , Liquid Incense Overnight Delivery , Buy Potpourri With Credit Cards , buy herbal incense with debit card, , Where To Order Liquid Incense Online , Buy Liquid Incense With Bitcoin , Buy K2 Liquid Incense On Paper In USA , Strongest Incense In USA

    ReplyDelete
  28. This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post!
    doctor in katy

    ReplyDelete
  29. This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post. I will visit your blog regularly for Some latest post.
    delta 8 cartridge review

    ReplyDelete
  30. I love this blog!! The flash up the top is awesome!!Serie

    ReplyDelete
  31. A good dispensary is one which maintains its integrity and records and it does not take much time for law enforcers to close an open dispensary if it is found that things are not being conducted according to code. craft canabis

    ReplyDelete
  32. Hi there,

    Thank you so much for the post you do and also I like your post, Are you looking for Buy Fentanyl Online in the whole USA? We are providing how to order medicine online, how to contact pharmacy, buy lomotil online, cheapest place to buy vyvanse, Buy vyvanse online, Buy vicodin online, Buy lomotil online, Buy nembutal online from reliable source, nembutal sodium solution, vyvanse for sale, where to buy lomotil online, vicodin side effects, vicodin dosage guide online, trust pharmacy online, Buy from trust medics pharmacy online, Online trust medics pharma, quick tips for buy pharmaceutical products, Buy pharmaceutical products online, pharmacy process flow, pharmaceutical products online, buy medicines online with discount, medicines online with discount, Buying and selling medicine online, online medicine order, medicine home delivery near me, online medicine home delivery near me, independent pharmacy delivery service, prescription courier service, medication delivery companies near me, prescription drugs delivery, prescription delivery service, pharmacy near me,24 hour pharmacy near me now, masks for coronavirus for sale, washable face mask online, best reusable face mask, most comfortable face mask, breathable face mask with filter, anxiety and depression medication list, anxiety medication names with the well price and our services are very fast.
    Click here for MORE DETAILS......
    Whatsapp us at: +14248350345
    Phone : +1 281 694 4534
    Email: mikelkean19@gmail.com


    ReplyDelete
  33. Hi there,

    Thank you so much for the post you do and also I like your post, Are you looking for Buy Fentanyl Online in the whole USA? We are providing how to order medicine online, how to contact pharmacy, buy lomotil online, cheapest place to buy vyvanse, Buy vyvanse online, Buy vicodin online, Buy lomotil online, Buy nembutal online from reliable source, nembutal sodium solution, vyvanse for sale, where to buy lomotil online, vicodin side effects, vicodin dosage guide online, trust pharmacy online, Buy from trust medics pharmacy online, Online trust medics pharma, quick tips for buy pharmaceutical products, Buy pharmaceutical products online, pharmacy process flow, pharmaceutical products online, buy medicines online with discount, medicines online with discount, Buying and selling medicine online, online medicine order, medicine home delivery near me, online medicine home delivery near me, independent pharmacy delivery service, prescription courier service, medication delivery companies near me, prescription drugs delivery, prescription delivery service, pharmacy near me,24 hour pharmacy near me now, masks for coronavirus for sale, washable face mask online, best reusable face mask, most comfortable face mask, breathable face mask with filter, anxiety and depression medication list, anxiety medication names with the well price and our services are very fast.
    Click here for MORE DETAILS......
    Contact us at: +14248350345
    Whatsapp us at: +1 281 694 4534
    Email: mikelkean19@gmail.com


    ReplyDelete
  34. The NRS Competitor Series Saddles are explicitly designed for competition.
    These saddles are an excellent choice for various reasons, including how well they fit your horse and
    how comfortable they are to ride in. .They're made entirely by hand in Texas. This product is really good.NRS Ranch Cutter Roughout Saddle

    ReplyDelete
  35. The cannabis industry has grown significantly as legalization has spread across the United States.
    Customers can now purchase and receive marijuana items from the comfort of their homes.
    Cannabis Delivery The cannabis business expands the number of ways to communicate with new customers.
    Feel free to say hi via the website link below.Legalweedsonlineshop

    ReplyDelete

  36. Good post. Thank you for sharing information on Bulk Ammo.25 06 ammo bulk If you want to buy guest posting
    services at a very reasonable price, please visit our website.

    ReplyDelete
  37. A ranch cutter barrel saddle is designed for versatility and made for all-day riding. Use our site and grab the most affordable online buy cavalga pony association saddle. Ranch cutters are heavier saddles but typically have a narrow seat for comfort and longer square skirts. Custom ranch cutter saddle has a tall, strong horn for lashing and hanging.

    ReplyDelete
  38. I learn some new stuff from it too, thanks for sharing your information.
    Buy wonderful chocolate honey

    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.