Hi Michael Zingale,

It seems that the answer in the linking webpage is to merging two color-bars(or colormap) into one, 
but I need those two colormaps be distinct from each other.
I cannot figure out how to use it to achieve it.

Here is a more detailed description of my question:

 I want to overlay two sliceplots together
 For example: I have a temperature field and a density field, 
 then I want to plot the distributions of temperature field and density field in one sliceplot.
The X-Y axis of the plot is physical location coordinate.
In such a plot, we can find the temperature value and density value on each physical location.

I will be appreciated if you can give me some more suggestions, thank you!

Best wishes,
He Yifeng





发件人:Michael Zingale via yt-users <yt-users@python.org>
发送日期:2022-03-26 20:49:53
收件人:Discussion of the yt analysis package <yt-users@python.org>
抄送人:Michael Zingale <michael.zingale@stonybrook.edu>
主题:[yt-users] Re: How to plot one kind of field value over another field value
you might also be interested in this discussion:

https://mail.python.org/archives/list/yt-users@python.org/thread/3HADV3SFO34ZNB2QIZLLB7QYFGAGK2JS/

On Sat, Mar 26, 2022 at 8:11 AM Prateek Gupta <prateekgidolia@gmail.com> wrote:
Hello He Yifeng,

I may have missed something, but are you looking for plotting the contours for one field over the 2D sliced/projected plot of another field?
Otherwise, maybe a phase-plot can help you in achieving your science goal.

Thanks,
-Prateek Gupta.

On Sat, Mar 26, 2022 at 11:30 AM <hyf@stu.pku.edu.cn> wrote:
Hi everyone:

I want to plot two kinds of field values in one figure and I have searched information about OVERPLOT of YT.

It seems that there is no function can do this.

I will be appreciated if anyone can give me some suggestions, thank you all!

Best wishes,
He Yifeng
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org
https://mail.python.org/mailman3/lists/yt-users.python.org/
Member address: prateekgidolia@gmail.com
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org
https://mail.python.org/mailman3/lists/yt-users.python.org/
Member address: michael.zingale@stonybrook.edu


--
Michael Zingale
Professor of Physics and Astronomy

Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800
phone:  631-632-8225