Re: [matplotlib-devel] scipy sprints

2015-06-26 Thread Neil Girdhar
Just writing send a +1 from a distance. I'm really looking forward to traitlets. I think it would make me much more likely to contribute to matplotlib in the future. Good luck! Neil On Mon, Jun 22, 2015 at 3:04 PM, Brian Granger wrote: > I will be around and would love to participate. > > On

[matplotlib-devel] Easy problem working with dev library

2015-05-16 Thread Neil Girdhar
How do I set it up so that I can import my local matplotlib dev copy? I tried making a sym-link to matplotlib/lib/matplotlib, but it's giving me errors: import matplotlib.transforms as mtransforms AttributeError: 'module' object has no attribute 'transforms' Thanks, Neil ---

Re: [matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-15 Thread Neil Girdhar
Come to think of it, I think the inheritance of draw and fill attributes that happen along the path would take advantage of traitlets if you guys decide to go that route. On Fri, May 15, 2015 at 11:40 AM, Neil Girdhar wrote: > Okay, I'm going to wait for more feedback. An hour of desig

Re: [matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-15 Thread Neil Girdhar
obably best left as simple > as possible. There is probably an interesting discussion about right is-a > and has-a relations between Path, FancyPath (don't use that name!), and > FancyArrow (which I do not have a clear view of yet). > > Tom > > On Fri, May 15, 2015 at 11

Re: [matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-15 Thread Neil Girdhar
neral, maybe it makes sense to start > from scratch and implement `FancyArrow` in terms of this code. > Yes! Didn't know about that. I think modifying and extending that code might be a good way forward. > > Tom > > On Fri, May 15, 2015 at 10:40 AM Neil Girdhar >

Re: [matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-15 Thread Neil Girdhar
ate a node along the path. n = p.node_at(Label("some label")) # Draw the path using an arrow, and the node. ax.path(p, draw={'tip': Arrow()}) ax.node(n) On Wed, May 13, 2015 at 11:27 PM, Thomas Caswell wrote: > Sorry, I may have been being a bit dramatic > > In mpl.

Re: [matplotlib-devel] Question about getters and setters.

2015-05-13 Thread Neil Girdhar
k. Let us know if there is enough interest to discuss this further. > > Cheers, > > Brian > > On Wed, May 13, 2015 at 9:36 PM, Eric Firing wrote: > >> On 2015/05/13 5:47 PM, Neil Girdhar wrote: >> > You're right. My angle is I just want the sett

Re: [matplotlib-devel] Question about getters and setters.

2015-05-13 Thread Neil Girdhar
much of a hinderance > (compared to other aspects of the codebase). But a proposal that makes > validation and style-handling (or some such) would be valuable. > > Cheers! > Ben Root > On May 13, 2015 11:06 PM, "Neil Girdhar" wrote: > >> I don't want to ruf

[matplotlib-devel] Question about getters and setters.

2015-05-13 Thread Neil Girdhar
I don't want to ruffle any feathers, and I'm sure this comes up all the time, but I'm wondering why don't we have a decorator on classes that generates all of the boilerplate methods? For example: @generate_boilerplate([('linestyle', 'ls'), …] class Patch(…): would generate get_ls, set_ls to po

Re: [matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-13 Thread Neil Girdhar
z/line join). Best, Neil On Wed, May 13, 2015 at 10:14 PM, Neil Girdhar wrote: > Thanks, it works! > > I needed to add: > > import matplotlib.patches > > to one file and > > plt.show() > > to the other. > > Any word on the locations in the code of the seven

Re: [matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-13 Thread Neil Girdhar
ave attached code to draw the arrowhead. > > -Ben > > > > On May 13, 2015, at 7:44 PM, Neil Girdhar wrote: > > Do you have the code that you used to draw the arrowhead? I'm up to date > now on the development workflow ( > http://matplotlib.org/devel/gitwash/develop

Re: [matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-13 Thread Neil Girdhar
4 PM, Thomas Caswell wrote: > > The other thing that should be done is to unify the (I think 7?!?) unique > ways to draw arrows in mpl. > > On Wed, May 13, 2015 at 4:52 PM Neil Girdhar > wrote: > >> Yes, I just noticed that as well. That's how the tikz pgf code look

Re: [matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-13 Thread Neil Girdhar
he custom arrowhead > doesn't include fancy Bezier curves, but that could be added. > > -Ben > > > > On May 13, 2015, at 2:54 PM, Thomas Caswell wrote: > > The other thing that should be done is to unify the (I think 7?!?) unique > ways to draw arrows in mpl. > > O

Re: [matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-13 Thread Neil Girdhar
Yes, I just noticed that as well. That's how the tikz pgf code looks (a sequence of line_to and curve_to commands and so on) so it should be easy to port over the various shapes. On Wed, May 13, 2015 at 4:49 PM, Eric Firing wrote: > On 2015/05/13 10:12 AM, Neil Girdhar wrote: > >

Re: [matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-13 Thread Neil Girdhar
only one that looks good imho. Best, Neil On Wed, May 13, 2015 at 4:09 PM, Eric Firing wrote: > On 2015/05/13 9:36 AM, Neil Girdhar wrote: > >> I don't know matplotlib well enough (yet) to know what the change would >> consist of. >> >> I suggest you take

Re: [matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-13 Thread Neil Girdhar
tom arrows: http://stackoverflow.com/questions/16968007/custom-arrow-style-for-matplotlib-pyplot-annotate How do I make tikz's arrowheads available for all backends? On Wed, May 13, 2015 at 2:55 PM, Eric Firing wrote: > On 2015/05/13 12:39 AM, Neil Girdhar wrote: > > TikZ is an

[matplotlib-devel] Incorporating TikZ into Matplotlib

2015-05-13 Thread Neil Girdhar
TikZ is an extremely well-designed library for generating professional figures within the cumbersome TeX framework. Currently, my work flow is to generate TikZ code using Python. The TikZ is compiled into PDFs, which are then included in my LaTeX files. I would like to work entirely in Python.