# Could not determine the plot limits

**URL:** <https://root-forum.cern.ch/t/could-not-determine-the-plot-limits/48102>\
**Category:** Garfield++\
**Created:** [December 18, 2021, 5:49am UTC](https://root-forum.cern.ch/t/could-not-determine-the-plot-limits/48102 "2021-12-18T05:49:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [December 18, 2021, 5:49am UTC](https://root-forum.cern.ch/t/could-not-determine-the-plot-limits/48102/1 "2021-12-18T05:49:00Z")

</div>

I want to simulate the electron drift lines using the DriftLineRKF, firstly I used the code"  
ViewDrift driftview;  
const bool twod = false;  
const bool axis = true;  
driftview.Plot(twod,axis);  
driftview.Plot3d();  
//RKF integration  
DriftLineRKF drift;  
drift.SetSensor(&sensor); //chuanganqidaoru  
drift.EnableSignalCalculation();  
drift.EnablePlotting(&driftview); "  
and finally I deleted the driftview.Plot3d(), however the results still notice “Could not determine the plot limits” and show the empty 3d plot. and nothing else plots either.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/6/5/65b4b0635ace7555530f1a55f24abd31124def8e.png)

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [December 18, 2021, 8:17am UTC](https://root-forum.cern.ch/t/could-not-determine-the-plot-limits/48102/2 "2021-12-18T08:17:04Z")

</div>

You need to simulate drift lines first before you can plot them.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [December 18, 2021, 8:41am UTC](https://root-forum.cern.ch/t/could-not-determine-the-plot-limits/48102/3 "2021-12-18T08:41:48Z")

</div>

Hi,  
Thanks a lot for your reply.  
do you have some examples, I will try to learn and simulate drift lines according to my situation.

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [December 18, 2021, 11:53am UTC](https://root-forum.cern.ch/t/could-not-determine-the-plot-limits/48102/4 "2021-12-18T11:53:20Z")

</div>

You could use the drift tube example as a starting point:

[https://garfieldpp.web.cern.ch/garfieldpp/examples/tube/](https://garfieldpp.web.cern.ch/garfieldpp/examples/tube/)

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [December 18, 2021, 12:14pm UTC](https://root-forum.cern.ch/t/could-not-determine-the-plot-limits/48102/5 "2021-12-18T12:14:27Z")

</div>

Hi,  
Thanks a lot for your reply.  
It’s really a good example, and I will try to figure the problem out.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [January 1, 2022, 12:15pm UTC](https://root-forum.cern.ch/t/could-not-determine-the-plot-limits/48102/6 "2022-01-01T12:15:03Z")

</div>

Closed on January 1, 2022, 12:15pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
