CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Exporting Chart to jpg or png format (https://www.cfd-online.com/Forums/cfx/158700-exporting-chart-jpg-png-format.html)

beyonder1 September 1, 2015 14:06

Exporting Chart to jpg or png format
 
Hi,
Is there anyway to export charts in jpg or png format from CFD-Post.

-Maxim- September 2, 2015 02:26

Outline (left sidebar) - Report - right click and select 'publish'
check 'save images in separate folder'

in 'more options', you can set the quality of the PNGs/JPGs.



speaking of... does anyone know an easier way? Is there a way to export the charts as *.svg or some other vector graphic image? I guess it's better to export the csv and use the raw data directly in LaTeX for publishing...

beyonder1 September 2, 2015 02:47

Thanks for the reply.
Actually I want to generate charts for large no. of timesteps. So according to solution provided by you, when i generate for other timestep, it overwrites on previous one. Do you any other way of doing it for multiple timesteps?

singer1812 September 3, 2015 08:56

Untested, but should give your the idea:

!$timestepList = getValue("DATA READER", "Timestep List");
!@timesteps = split(/, /, $timestepList );
! foreach $ts ( @timesteps ) {
!$b=$b+1;
> load timestep=$ts

ADD IN YOUR SESSION FILE RECORDING OF YOUR CHART GENERATION HERE

>chart print, Chart Name = Chart 1, filename = <YOURPATH>/Chart.png, x size = 800, y size = 800, format = png, factor = 0.813406
!rename("<YOURPATH>/Chart.png","<YOURPATH>/$b.png");
!}


All times are GMT -4. The time now is 12:26.