Scale remains linear after SetLogScale
Author: bgood
Creation Date: 7/11/2009 3:25 PM
profile picture

bgood

#1
I have the following code segment:

CODE:
Please log in to see this code.


The second pane is displayed, but the scale remains linear. What am I doing wrong?
profile picture

Eugene

#2
I think it's because the dataseries you're using contains zero values, which negatively affects WL5's log scale display. Just use the opposite shift (>>20) to get rid of the zeroes and see that log scale starts to work.
profile picture

bgood

#3
Thank you Eugene. I had not thought that the << operator would shift in zeros!! Eliminated values <= 0 and now graph works OK.

Have you tried using:

CODE:
Please log in to see this code.


I thought the API suggested that it should sum the prior 4 quarters earnings and return the dataseries. The behavior is that it only returns the current quarter earnings.
profile picture

Cone

#4
That's not the behavior I'm seeing, it looks correct to me. Which symbol are you viewing? There could be an error in the particular set of fundamental data (unfortunately there are many) that's causing the aggregrate function to abort.

Review the data (especially the dates) using the QuickRef example for FundamentalDataItems.
profile picture

bgood

#5
I tried again the same as I showed above, and it now works. I am not sure what I might have done wrong. Thank you for your prompt feedback.
profile picture

bgood

#6
After reviewing exactly what I had before when things did not work and when they did, I believe that the problem came from having the same data on screen with 2 different effects applied. I think that the DataSeries assignment did a shallow-copy rather than a deep-copy and the 2 effects were fighting each other. When I tried the second time I only displayed the data 1 time. What is the best way to do a deep-copy for DataSeries?
profile picture

Cone

#7
It depends on how many times you need to copy it. If just once, multiply by unity and assign it to a new series.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).