# Setting graphical window as per image size

**URL:** https://discourse.paraview.org/t/setting-graphical-window-as-per-image-size/5326
**Category:** ParaView Support
**Created:** [September 12, 2020, 10:43am UTC](https://discourse.paraview.org/t/setting-graphical-window-as-per-image-size/5326 "2020-09-12T10:43:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![malieng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@malieng](https://discourse.paraview.org/u/malieng)
#### Post date: [September 12, 2020, 10:43am UTC](https://discourse.paraview.org/t/setting-graphical-window-as-per-image-size/5326/1 "2020-09-12T10:43:48Z")

</div>

Hi everyone,

I am struggling to fit the graphical window size acording to the image size otherwise it takes a lot space. Could you please suggest how to do this?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 14, 2020, 7:47am UTC](https://discourse.paraview.org/t/setting-graphical-window-as-per-image-size/5326/2 "2020-09-14T07:47:13Z")

</div>

Please clarify your question.

---

<div class="post-metadata">

### Author: ![malieng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@malieng](https://discourse.paraview.org/u/malieng)
#### Post date: [September 14, 2020, 11:13am UTC](https://discourse.paraview.org/t/setting-graphical-window-as-per-image-size/5326/3 "2020-09-14T11:13:21Z")

</div>

Thanks @mwestphal I managed to do that. Actually, I wanted the image to fit in the display window size. Could you please take a look at this [QCriterion in Paraview](https://discourse.paraview.org/t/qcriterion-in-paraview/2355/15)

Actually, I have been trying to create Q-criterion following the procedure already posted. I have exported three components of velocity vector as a case file to the Paraview but after using Gradient of Unstructured Dataset filter I get an error.

ERROR: In C:\bbd\8fbebceb\build\superbuild\paraview\src\VTK\Filters\General\vtkGradientFilter.cxx, line 305  
vtkGradientFilter (000002358DD037E0): No input array. If this dataset is part of a composite dataset check to make sure that all non-empty blocks have this array.

ERROR: In C:\bbd\8fbebceb\build\superbuild\paraview\src\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 753  
vtkPVCompositeDataPipeline (0000023596CE4580): Algorithm vtkGradientFilter(000002358DD037E0) returned failure for request: vtkInformation (00000235932A38C0)  
Debug: Off  
Modified Time: 2845835  
Reference Count: 1  
Registered Events: (none)  
Request: REQUEST\_DATA  
FROM\_OUTPUT\_PORT: 0  
FORWARD\_DIRECTION: 0  
ALGORITHM\_AFTER\_FORWARD: 1
