# Dose Volume Histogram Plotting issue

**URL:** https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781
**Category:** Support
**Tags:** segmentation, dicom, slicerrt, nifti, rtdose
**Created:** [March 31, 2022, 4:43pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781 "2022-03-31T16:43:15Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Js165](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/js165/32/14631_2.png) [@Js165](https://discourse.slicer.org/u/Js165)
#### Post date: [March 31, 2022, 4:43pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781/1 "2022-03-31T16:43:15Z")

</div>

Hi,  
I am trying to plot a dose-volume histogram (DVH) graph using SlicerRT. I have a segmentation file in NIFTI format and a dose file in DICOM format. I am uploading the segmentation file as “segmentation” and the dose file as “volume”. Dose Volume Histogram of Radiotherapy extension can detect segmentation file but can’t recognize dose file [image attached]. Could you please help me with what I am missing? Do I need to convert the segmentation file to label map or RTstruct format?

 ![1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/4/a45a67052596969655e7c97c1a341de4e8a5f297.png)  
 ![2](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/5/65ffaa5a1dc8abe1e555628bf2bae47b172af28f.png)

---

<div class="post-metadata">

### Author: ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)
#### Post date: [March 31, 2022, 4:52pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781/2 "2022-03-31T16:52:19Z")

</div>

You can either uncheck “Show dose volumes only” to show all volume nodes in the Dose volume selector, or you can right-click on the volume node in the subject hierarchy, and click “Convert to RT dose volume…”.

---

<div class="post-metadata">

### Author: ![Js165](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/js165/32/14631_2.png) [@Js165](https://discourse.slicer.org/u/Js165)
#### Post date: [March 31, 2022, 4:54pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781/3 "2022-03-31T16:54:32Z")

</div>

@Sunderlandkyl Thanks a lot! Issue solved.

---

<div class="post-metadata">

### Author: ![Js165](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/js165/32/14631_2.png) [@Js165](https://discourse.slicer.org/u/Js165)
#### Post date: [March 31, 2022, 5:16pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781/4 "2022-03-31T17:16:08Z")

</div>

The DVH graph I generated shows Fractional Volume vs Intensity [attached Image]. Is it possible to get Fractional Volume vs Dose [Gy]? I’m not sure if there is any relation between Intensity and Dose [Gy].  
 ![3](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/6/c6369c63c26550893dde121659ad86b7f4caf27d.png)

---

<div class="post-metadata">

### Author: ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)
#### Post date: [March 31, 2022, 5:54pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781/5 "2022-03-31T17:54:56Z")

</div>

Yeah, converting the volume using “Convert to RT dose volume…” will allow you to change the units to Gy. You may have to scale the values as well.

---

<div class="post-metadata">

### Author: ![Js165](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/js165/32/14631_2.png) [@Js165](https://discourse.slicer.org/u/Js165)
#### Post date: [March 31, 2022, 6:08pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781/6 "2022-03-31T18:08:38Z")

</div>

Thanks a lot for your response! I am getting this error “The volume must be under a study in order to be converted to dose. Please drag&drop the volume under a study. If there is no study, it can be created under a subject. Consult the help window for more details.” Attached Image for your reference.

 ![4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/1/41295954a8e167fa3dde42d761b451c28fc77027.png)

---

<div class="post-metadata">

### Author: ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)
#### Post date: [March 31, 2022, 6:19pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781/7 "2022-03-31T18:19:08Z")

</div>

To create a subject+study, just right-click in an empty area in the subject hierarchy, then click “Create new subject”, right-click on the subject and click “Create child study”. Then you can drag the dose volume onto the study.

---

<div class="post-metadata">

### Author: ![Js165](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/js165/32/14631_2.png) [@Js165](https://discourse.slicer.org/u/Js165)
#### Post date: [March 31, 2022, 6:38pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781/8 "2022-03-31T18:38:23Z")

</div>

Thanks a lot! You solved my issues. I have two more questions. How can I change the color of each graph, and how can I limit the X and Y axis value?

---

<div class="post-metadata">

### Author: ![Js165](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/js165/32/14631_2.png) [@Js165](https://discourse.slicer.org/u/Js165)
#### Post date: [March 31, 2022, 7:10pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781/9 "2022-03-31T19:10:18Z")

</div>

@Sunderlandkyl got one solution, i.e., “Export DVH to File”. Not sure if there is any other option available or not. Btw, thanks a lot!

---

<div class="post-metadata">

### Author: ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)
#### Post date: [March 31, 2022, 8:24pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781/10 "2022-03-31T20:24:32Z")

</div>

You can change the properties of the graph from the “Charts” module. The X and Y axis limits are in the Charts tab, and the color of each line is in the Series tab.

---

<div class="post-metadata">

### Author: ![Js165](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/js165/32/14631_2.png) [@Js165](https://discourse.slicer.org/u/Js165)
#### Post date: [March 31, 2022, 11:07pm UTC](https://discourse.slicer.org/t/dose-volume-histogram-plotting-issue/22781/11 "2022-03-31T23:07:35Z")

</div>

Thanks, @Sunderlandkyl ! Just in case anyone needs help in plot modification, follow this step. **Go to “Informatics”, then select “Plots”. It contains two tabs “Charts” and “Series”.** Now change whatever you want.
