-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
Description
When plotting Taylor Diagram in EzTemplate, TD does not have proper border lines.
import vcs
import MV2
import EzTemplate
# Create dummy 7 data
corr = [.2, .5, .7, .85, .9, .95, .99]
std = [1.6, 1.7, 1.5, 1.2 , .8, .9, .98]
data = MV2.array(zip(std, corr))
data.id = "My Taylor Diagram Data"
print 'data:\n', data
print 'data shape:', data.shape
# Set up canvas and template
canvas = vcs.init()
my_template = vcs.createtemplate()
M = EzTemplate.Multi(template=my_template, rows=2,columns=2, x=canvas)
taylor = vcs.createtaylordiagram()
# Loop for sub panels
for i in range(4):
if i==0:
r=0
c=0
elif i==1:
r=0
c=1
elif i==2:
r=1
c=0
else:
r=1
c=1
t = M.get(legend='local',row = r, column = c)
taylor.referencevalue = 1.
canvas.plot(data, t, taylor, skill=taylor.defaultSkillFunction)
# Save image
canvas.png('test.png')Boundary lines are showing as rectangular rather than it supposed to be. The taylor.referencevalue = 1. is not working neither.
Reactions are currently unavailable
