LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

export simplified image bug report

The attached XY Graph has two plots represented in semilog scale (linear X scale, logarithmic Y scale).

The two axes are set to not autoscale and I chose Y to start a 1. There are values of Y equal to zero in the plots.

 

Screen Shot 2015-02-16 at 11.19.51.png

 

When right-clicking the graph and selecting Export>>Export Simplified Image... and then selecting the following options:

 

Screen Shot 2015-02-16 at 11.20.52.png

 

pasting the image into another software (e.g. Power Point) results in this:

 

Screen Shot 2015-02-16 at 11.22.13.png

 

Notice that the zero bins are now set to infinity...

No such problem occur when setting the Y scale to linear or exporting the image as BMP.

But of course none of these are satisfactory solutions to this bug, which seems related to what is described in this recent thread:

http://forums.ni.com/t5/forums/replypage/board-id/170/message-id/877895

 

Tested in LV 2013 SP1

0 Kudos
Message 1 of 5
(2,781 Views)

You got 0 in the data.

Log 0 => inf.

 

a work around:

replace 0 with NaN.

Then you get:

 

test.emf

 

 

George Zou
0 Kudos
Message 2 of 5
(2,748 Views)

We agree that NI does not do the right thing when generating the simplified image (they indeed apparently compute the log of the data again and rather than setting log(0) = NaN, they set it to +Inf).

Which suggest that if you have large data sets in a graph, the simplified image generation may take a while too (not checked).

My personal workaround is to take a snapshot of the graph.

0 Kudos
Message 3 of 5
(2,733 Views)

For performence, replace 0 with 1/10 of Ymin will have the same visual effects.

 

George Zou
0 Kudos
Message 4 of 5
(2,721 Views)

@zou: I think you should refrain from posting anymore workaround suggestions, because that is absolutely not the purpose of the thread.

Tell me what I should do if I subtracted 1 to all values in the 2nd graph?

To what extent should I be ready to mess up with my original data to get the "Export Simplified Image" feature to work properly when using Log scale?

 

In fact, the whole function is close to useless, considering how oversimplified the exported image is anyhow.

 

0 Kudos
Message 5 of 5
(2,689 Views)