# Plot gets jumbled up when a map is applied

**URL:** https://discourse.julialang.org/t/plot-gets-jumbled-up-when-a-map-is-applied/132995
**Category:** General Usage
**Tags:** plotting, dataframes, pythonplot, plotsjl
**Created:** [October 8, 2025, 11:22pm UTC](https://discourse.julialang.org/t/plot-gets-jumbled-up-when-a-map-is-applied/132995 "2025-10-08T23:22:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Quantodeluz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quantodeluz/32/218696_2.png) [@Quantodeluz](https://discourse.julialang.org/u/Quantodeluz)
#### Post date: [October 8, 2025, 11:22pm UTC](https://discourse.julialang.org/t/plot-gets-jumbled-up-when-a-map-is-applied/132995/1 "2025-10-08T23:22:41Z")

</div>

I have some temperature decay data, and i’m trying to graph \frac{T-T\_a}{T\_0-T\_a} vs t. So i applied a simple mapping: `map(T->(T-Ta)/(df.temp_cº[1]-Ta), df.temp_cº)`, and it gave me this (with two different datasets):

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/6/761cdd723dc9da4e3514d9fb2457ed6a301150b9.png)  
First one is T vs t, second one is \frac{T-T\_a}{T\_0-T\_a} vs t  
What could have happened to the red data?

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [October 9, 2025, 11:54am UTC](https://discourse.julialang.org/t/plot-gets-jumbled-up-when-a-map-is-applied/132995/2 "2025-10-09T11:54:38Z")

</div>

This does not seem to be a plotting issue, but rather an issue with the input data.  
Could you provide a MWE?

---

<div class="post-metadata">

### Author: ![Quantodeluz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quantodeluz/32/218696_2.png) [@Quantodeluz](https://discourse.julialang.org/u/Quantodeluz)
#### Post date: [October 9, 2025, 8:48pm UTC](https://discourse.julialang.org/t/plot-gets-jumbled-up-when-a-map-is-applied/132995/3 "2025-10-09T20:48:11Z")

</div>

I found the problem, i was using the data from the first df for the map of the second. Easy fix, now everything works as intended.  
Sorry to bother you 😅
