Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template drawLinesAndMarkersLegend misleading doc #115

Closed
doutriaux1 opened this issue Jan 10, 2017 · 2 comments
Closed

template drawLinesAndMarkersLegend misleading doc #115

doutriaux1 opened this issue Jan 10, 2017 · 2 comments
Milestone

Comments

@doutriaux1
Copy link
Contributor

the

import vcs
x=vcs.init()
t=vcs.createtemplate()
t.drawLinesAndMarkersLegend(x,["red","blue","green"], ["solid","dash","dot"],[1,4,8],["blue","green","red"], ["cross","square","dot"],[3,4,5],["sample A","type B","thing C"],True)

fails
the bg=True keyword seems to make it fail (i think it's because was rendered previously)

@doutriaux1 doutriaux1 assigned ghost Jan 10, 2017
@doutriaux1 doutriaux1 added this to the VCS documentation milestone Jan 10, 2017
@ghost
Copy link

ghost commented Jan 10, 2017

@doutriaux1 Which version of the docs is this from? My current version, the doc has this example
(The tedious declaration of lists is because the pdf formatting looks bad if those code examples go over 80 characters to a line):

>>> x = vcs.init()
>>> t = vcs.createtemplate()
>>> l_colors=["red","blue","green"]
>>> l_types=["solid","dash","dot"]
>>> l_widths=[1,4,8]
>>> m_colors=["blue","green","red"]
>>> m_types=["cross","square","dot"]
>>> m_sizes=[3,4,5]
>>> strings=["sample A","type B","thing C"]
>>> scratch=[True,False,True]
>>> t.drawLinesAndMarkersLegend(x, l_colors, l_types, l_widths,
...     m_colors, m_types, m_sizes, strings, scratch)
>>> x.png("sample")

My report doesn't indicate that there was an error with that test, so I think this issue will be resolved as soon as #114 is reviewed and merged.

@doutriaux1
Copy link
Contributor Author

good. @chaosphere2112 is reviewing this right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant