Dear Richard,

Thanks a lot for your response. May I know what is TSVViewer? I did some
search but not sure whether it's what you were referring to. I'd love to
know how you do it.

Thanks,
Rose


On Mon, Nov 11, 2013 at 4:30 PM, Richard Gillilan <[email protected]> wrote:

>  I'm rather new to FiPY too, but my impression is that viewers in FiPy are
> very basic ... really intended only for monitoring results during
> computation. So they don't have any real ability to customize. I'd love to
> learn otherwise.  I write out my solutions using a TSVViewer, then have a
> separate python script to read and display those results using the standard
> matplotlob calls where you can do anything you want.
> I'd be happy to share them if you like. They are very simple.
>
>  Richard
>
>
>  On Nov 11, 2013, at 4:16 PM, yuan wang wrote:
>
>  I've figured out how to plot in matplotlib. It seems that the y and x I
> had before were were not values. I need to do something like plot(y.value,
> x.value) to plot their values.
>
>  But I still don't know how to customize fipy viewer to do the same
> thing. I'd appreciate someone who has done it before could share some
> thoughts.
>
>  Thanks,
> Rose
>
>
>
>
> On Mon, Nov 11, 2013 at 4:00 PM, yuan wang <[email protected]> wrote:
>
>> Hi fipyers,
>>
>>  I am new to Fipy and python in general. I am using fipy to solve a 1-D
>> pde related to my research. I've searched through the internet but could
>> not find how to switch x, y axis in fipy viewer.
>>
>>  What I want to do is something like plot(y,x), because my domain is
>> vertical and I want make it appear the right direction on plots.
>>
>>  I looked through the source code of matplotlib1Dviewer, but still could
>> not figure out how to adjust it to work the magic. Then, I think I will
>> just use matplotlib itself to do the plotting. Then, I encountered an error
>> message, saying, "AttributeError: 'unOp' object has no attribute 'lower' ".
>> I guess this 'unOp' object refers to the outcome of the pde solver (in my
>> case, it's concentration values). The shape of the outcome values are the
>> same as my x values (mesh grid locations). I don't understand why it could
>> not be plotted.
>>
>>  Hope someone can help me. Thank you in advance.
>>
>>  Best regards,
>> Rose
>>
>
>  _______________________________________________
> fipy mailing list
> [email protected]
> http://www.ctcms.nist.gov/fipy
>  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
>
>
>
> _______________________________________________
> fipy mailing list
> [email protected]
> http://www.ctcms.nist.gov/fipy
>   [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
>
>
_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to