Questions tagged [cairoplot]

8 questions
2
votes
1 answer

Rendering correlation scatterplot in ShinyApp

When I try to render the correlation scatter plot in Shiny app using ggplot following error appears: Failed to create Cairo backend! output$model <- renderPlot({ k <- dataIn() cormat <- round(cor(k),2) library(reshape2) …
JDowN
  • 21
  • 4
2
votes
1 answer

Django: How to render image with a template

Objective: I would like to display a generated .png image using a template. I worked with the example here. Here is the final snippet of code from that example: def gen_chart(request): ... pp = CairoPlot.PiePlot(surface, data, heigth, width,…
Dirty Penguin
  • 4,212
  • 9
  • 45
  • 69
1
vote
1 answer

python: cairoplot gantt_chart rendering problems

looks like gantt_chart() doesn't work properly for following set of data: tg_p = [ (0, 12), (0, 5), (0,13) ] tg_v = [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14'] tg_h = [ 'test', 'test2', 'test3' ] tg_c = […
m1k3y3
  • 2,762
  • 8
  • 39
  • 68
1
vote
3 answers

python: open file, feed line to list, process list data

I want to process the data in the file "output.log" and feed it to graphdata['eth0] I have done this but it process only the first line: logread = open("output.log", "r").readlines() for line in logread: print "line", line i =…
krisdigitx
  • 7,068
  • 20
  • 61
  • 97
1
vote
2 answers

Charts with proper unicode support

I want to create simple charts like pies and bars in python. I tried out CairoPlot and pycha. Both look amazing, but they seem not to be able to handle unicode characters properly. CairoPlot.pie_plot(name='test.png', width=800, height=600, …
vikingosegundo
  • 52,040
  • 14
  • 137
  • 178
0
votes
1 answer

gnuplot cairolatex terminal produces strange results

I have this gnuplot script: # set terminal cairolatex size 5.0cm,5.0cm color # set output 'RatioVerbose.tex' set grid # set key font "Times New Roman,12" set style line 1 \ linecolor rgb '#a82828' \ linetype 1 linewidth 3 \ pointtype 5…
coderodde
  • 1,269
  • 4
  • 17
  • 34
0
votes
2 answers

Import module CairoPlot fails in Python

I'm using cairo plot to draw charts with python. I followed the instruction as stated on the website to install Cairplot, http://linil.wordpress.com/2008/09/16/cairoplot-11/ : sudo apt-get install bzr bzr branch lp:cairoplot/1.1 The installation…
Harpal
  • 691
  • 2
  • 6
  • 8
-1
votes
1 answer

Cairo library: cairo_line_to Function

I have legacy code which use cairo library to draw png and calling following function. I could not understand the following code. I know it is weired question that took some piece of code and ask question. But great if anyone provide. #define…
user765443
  • 1,856
  • 7
  • 31
  • 56