Skip to content

Commit

Permalink
Added legend to xyscatter test
Browse files Browse the repository at this point in the history
  • Loading branch information
katerina7479 committed Jul 15, 2014
1 parent beaeb54 commit 1b12f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/xyscatterplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def XYScatterPlotTest():
cursor = PDFCursor(100, 50)
data = [{"series1": [(14.2, 215), (16.4, 325), (11.9, 185), (15.2, 332), (18.5, 406), (22.1, 522), (19.4, 412), (25.1, 614), (23.4, 544), (18.1, 421), (22.6, 445), (17.2, 408)]}]

document.add_xy_scatter(data, cursor, 400, 200, "Ice Cream Sales vs Temperature", None, None, None, ("temperature", "sales"), "Auto", padding=0.11, dots=1)
document.add_xy_scatter(data, cursor, 400, 200, "Ice Cream Sales vs Temperature", (10, 26), (180, 660), (1, 50), ("temperature", "sales"), "Auto", padding=0.11, dots=1, legend="right")

cursor = PDFCursor(100, 400)
document.add_xy_scatter(data, cursor, 400, 200, "Ice Cream Sales vs Temperature", None, None, None, ("temperature", "sales"), "Auto", padding=0.11, dots=1, linear_regression=True, linear_regression_equation=True)
Expand Down

0 comments on commit 1b12f64

Please sign in to comment.