No worries. Dan Wheeler is guilty of the same misconduct. > On Mar 20, 2018, at 9:47 AM, Michael J. Waters <waters.mik...@gmail.com> > wrote: > > Hi Jonathan, > > Sorry to disappoint you. > Kevin, > If you have time, what Jonathon said is much better. Code contribution is > very important to open source projects! > > Best, > > -Mike > > On 3/20/18 8:21 AM, Guyer, Jonathan E. Dr. (Fed) wrote: >> I must confess that this answer makes me sad. FiPy is object oriented >> precisely so that you don't need to do this. The intended design is that you >> subclass Matplotlib1DViewer to override the behavior you want. There are two >> places you can do this: >> >> * In Matplotlib1DViewer.__init__(), around >> https://github.com/usnistgov/fipy/blob/71d82e1cc7b2c4e7c1c996d038fd8542d7e4c5a1/fipy/viewers/matplotlibViewer/matplotlib1DViewer.py#L82 >> and following, add a `color=` argument to the creation of the lines. >> >> * In Matplotlib1DViewer._plot(), after >> https://github.com/usnistgov/fipy/blob/71d82e1cc7b2c4e7c1c996d038fd8542d7e4c5a1/fipy/viewers/matplotlibViewer/matplotlib1DViewer.py#L145 >> , add a `line[0].set_color()` call. >> >> In addition to subclassing for your own purposes, a pull request that adds >> this capability to Matplotlib1DViewer would be most welcome. >> >> P.S. I think Dan Lewis is thinking of the custom viewers in >> https://www.ctcms.nist.gov/fipy/examples/phase/generated/examples.phase.anisotropy.html >> and >> https://www.ctcms.nist.gov/fipy/examples/phase/generated/examples.phase.polyxtal.html >> . Neither does the specific customization you are looking for, but they >> illustrate how subclassing a Viewer class is intended to work. >> >> - Jon >> >> >>> On Mar 19, 2018, at 12:48 PM, Michael J. Waters <waters.mik...@gmail.com> >>> wrote: >>> >>> Hi Kevin, >>> >>> If you are using the Matplotlib Viewers, you could just skip the Viewers >>> and use Matplotlib directly. it's not hard to simply setup subplots using >>> Matplotlib and it should be easy to get them to update the figure at each >>> time step. >>> Best, >>> >>> -Mike >>> >>> >>> On 3/19/18 11:35 AM, Kevin Blondino wrote: >>> >>>> Hi, >>>> >>>> My problem is one-dimensional. When plotting, I wish to have side-by-side >>>> plots of separate cell variables. The color of the lines default to a >>>> color scheme, i.e. the first line of each subplot is blue, etc. I wish to >>>> have the viewer allow me to choose the color of the line. Does this >>>> already exist? Or would I have to export it as a TSV and plot it under my >>>> own accord? I scoured the documentation and archive with no avail. >>>> >>>> Thanks, >>>> Kevin >>>> >>>> >>>> _______________________________________________ >>>> fipy mailing list >>>> >>>> >>>> fipy@nist.gov >>>> http://www.ctcms.nist.gov/fipy >>>> >>>> >>>> [ NIST internal ONLY: >>>> >>>> https://email.nist.gov/mailman/listinfo/fipy >>>> >>>> ] >>>> >>>> >>> _______________________________________________ >>> fipy mailing list >>> >>> fipy@nist.gov >>> http://www.ctcms.nist.gov/fipy >>> >>> [ NIST internal ONLY: >>> https://email.nist.gov/mailman/listinfo/fipy >>> ] >>> >> >> _______________________________________________ >> fipy mailing list >> >> fipy@nist.gov >> http://www.ctcms.nist.gov/fipy >> >> [ NIST internal ONLY: >> https://email.nist.gov/mailman/listinfo/fipy >> ] >> > > _______________________________________________ > fipy mailing list > fipy@nist.gov > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
_______________________________________________ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]