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

Canvas.cgm() doesn't seem to work #110

Open
ghost opened this issue Dec 12, 2016 · 6 comments
Open

Canvas.cgm() doesn't seem to work #110

ghost opened this issue Dec 12, 2016 · 6 comments
Assignees
Labels
bug low Low Priority bug (but not enhancement)
Milestone

Comments

@ghost
Copy link

ghost commented Dec 12, 2016

@doutriaux1 looks like this one is either deprecated or not implemented. Let me know which and I will note it in the docs.

>>> a=vcs.init()
>>> array=[range(10) for _ in range(10)]
>>> a.plot(array)
>>> a.cgm('bars.cgm')
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-57-289541cfb4d2> in <module>()
----> 1 a.cgm('bars')

/Users/brown308/anaconda/envs/2.8/lib/python2.7/site-packages/vcs/Canvas.pyc in cgm(self, file, mode)
   4010                 "cgm only supports 'w' mode ignoring your mode ('%s')" %
   4011                 mode)
-> 4012         return self.backend.cgm(file)
   4013 
   4014     def clear(self, *args, **kargs):

/Users/brown308/anaconda/envs/2.8/lib/python2.7/site-packages/vcs/VTKPlots.pyc in cgm(self, file)
   1238             plot.hideWidgets()
   1239 
-> 1240         writer = vtk.vtkIOCGM.vtkCGMWriter()
   1241         writer.SetFileName(file)
   1242         R = self.renWin.GetRenderers()

AttributeError: 'module' object has no attribute 'vtkIOCGM'
@jypeter
Copy link
Member

jypeter commented Dec 13, 2016

I had an old issue about that in CDAT/cdat#1065

We used the vector cgm output format when vcs was based on xgks, but that's not the case any more. We can probably safely assume that people have not used cgm for a long long time

@ghost
Copy link
Author

ghost commented Dec 13, 2016

@jypeter awesome, thank you! I will flag it with a deprecation for now.

@durack1
Copy link
Member

durack1 commented Dec 13, 2016

@embrown I know one person that likely uses cgm still, @doutriaux1 knows that Ben is that individual..

@doutriaux1
Copy link
Contributor

@sankhesh @aashish24 there is a flag and some cgm code in the old VTK @aashish24 and I found it a while back. It would be awesomeif you could reactivate it.,

@ghost ghost added the bug label Dec 15, 2016
@doutriaux1 doutriaux1 modified the milestone: 3.0 May 5, 2017
@doutriaux1 doutriaux1 modified the milestones: 3.0, post 3.0 Mar 29, 2018
@doutriaux1 doutriaux1 modified the milestones: 8.1, 8.2 Mar 27, 2019
@doutriaux1
Copy link
Contributor

I think this should be deprecated.

@doutriaux1 doutriaux1 self-assigned this Apr 18, 2019
@doutriaux1 doutriaux1 added the low Low Priority bug (but not enhancement) label Apr 18, 2019
@doutriaux1
Copy link
Contributor

i don't think people use cgm anymore and @scottwittenburg mentions most of context2d would likely fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug low Low Priority bug (but not enhancement)
Projects
None yet
Development

No branches or pull requests

3 participants