# vtkPlotLine wrong width visualization

**URL:** https://discourse.vtk.org/t/vtkplotline-wrong-width-visualization/7924
**Category:** Support
**Created:** [February 25, 2022, 3:00pm UTC](https://discourse.vtk.org/t/vtkplotline-wrong-width-visualization/7924 "2022-02-25T15:00:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mezitor](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/838e76/32.png) [@Mezitor](https://discourse.vtk.org/u/Mezitor)
#### Post date: [February 25, 2022, 3:00pm UTC](https://discourse.vtk.org/t/vtkplotline-wrong-width-visualization/7924/1 "2022-02-25T15:00:35Z")

</div>

Hello!  
I am trying to visualize a 2D plot. Y range = 3790, step = 0.1  
And I need plot to be thicker. But for some reason when m\_Width = 1 plot looks great, but when I’m starting to increase width, it’s becoming something like on image. When I am zooming in, line starts to smooth.  
Do you have any idea what is happening there? I tried to set witdh to pen instead of line, but result is the same. Also changing pen to dots wont work for me, because I need solid line.

```auto
auto line = vtkPlotLine::New();

line->SetColor(lineSettings->m_Color.red(), lineSettings->m_Color.green(), lineSettings->m_Color.blue(), lineSettings->m_Color.alpha());

line->SetWidth(lineSettings->m_Width + (m_IsHighlighted ? 2 : 0));

line->SetInputData(infos.Table, 2, 0);

m_Chart->AddPlot(plot);

```

 ![Width1](https://discourse.vtk.org/uploads/default/original/2X/a/acda49b7fdebe595984b0967a2fbbcc5a9ca531d.png)  
 ![Width20](https://discourse.vtk.org/uploads/default/original/2X/9/904df12fe0358378832958cdd347be836c9d4638.png)  
 ![zoomedWidth20](https://discourse.vtk.org/uploads/default/original/2X/5/57b4bdf61e0930753e12e478e208b5d41cd797e2.png)
