vcs icon indicating copy to clipboard operation
vcs copied to clipboard

EzTemplate defaults "chop" axes when writing to file

Open durack1 opened this issue 7 years ago • 12 comments

@danlipsa @doutriaux1 the current EzTemplate defaults do not prevent the axes being written off the canvas, and so when an output file is written we get the below. I also note that the axes, legend etc overwrite one another:

eztemplate-broken

import EzTemplate
import vcs
import numpy as np

d = np.ones([10,10])
gm = vcs.createboxfill()
canvas = vcs.init(geometry=(2700, 2700), bg=True)
M = EzTemplate.Multi(columns=1,rows=2)
# First panel
t = M.get()
canvas.plot(d,gm,t)
# Second panel
t = M.get()
canvas.plot(d,gm,t)
canvas.png('EzTemplate-broken')

It would be good to revise these templates so that by default, all axes and informational text is captured within the bounds of the output format and that overwrites do not occur

durack1 avatar Apr 08 '17 00:04 durack1