User (Legacy) Posted April 19, 2005 Report Share Posted April 19, 2005 Hi, I'm having a problem getting log values < 1 on the X Axis to show up in my log chart. They do work ok on the Y axis though. The strange this is if I change it to a LINES gallery, then the line shows up (but with no marker!) Below is some code that works in the passing data sample project. Thanks, Steve. Code: .Gallery = SCATTER .MarkerSize = 5 ' Set X/Y data .OpenDataEx COD_VALUES Or COD_REMOVE, 2, 4 .OpenDataEx COD_XVALUES, 2, 4 .Axis(AXIS_X).LogBase = 10 .Axis(AXIS_X).AutoScale = True .Axis(AXIS_Y).LogBase = 10 .Axis(AXIS_Y).AutoScale = True .ValueEx(0, 0) = 10 .XValueEx(0, 0) = 0.9 .ValueEx(0, 1) = 100 .XValueEx(0, 1) = 1 .ValueEx(0, 2) = 1000 .XValueEx(0, 2) = 10 .ValueEx(0, 3) = 10000 .XValueEx(0, 3) = 100 .ValueEx(1, 0) = 0.7 .XValueEx(1, 0) = 0.7 '.XValueEx(1, 0) = 1 .ValueEx(1, 1) = 200 .XValueEx(1, 1) = 100 .ValueEx(1, 2) = 400 .XValueEx(1, 2) = 200 .ValueEx(1, 3) = 2000 .XValueEx(1, 3) = 1000 .CloseData COD_VALUES .CloseData COD_XVALUES .RecalcScale Link to comment Share on other sites More sharing options...
Software FX Posted April 22, 2005 Report Share Posted April 22, 2005 The only difference is that by default the X-Axis shows NO decimals while the Y-Axis shows 2. Simply set: .Axis(AXIS_X).Decimlas = 2 -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted April 25, 2005 Author Report Share Posted April 25, 2005 SoftwareFX Support wrote: > The only difference is that by default the X-Axis shows NO decimals while > the Y-Axis shows 2. > > Simply set: > > .Axis(AXIS_X).Decimlas = 2 > Ok, that does work....but why? The decimals property says in the documentation that it applies to the labels ONLY not the data associated with it. Its fair enough that the label on the axis may not be shown, but hiding the data as well just seems like a bug. Link to comment Share on other sites More sharing options...
Software FX Posted April 26, 2005 Report Share Posted April 26, 2005 Is not hiding any data, however it will not chose a Min for the X Axis that can not be represented with zero decimals. Your data is still there but it is outside of the viewable area, in other words, when Chart FX chooses the range to display it can't come up with anything congruent with your data as on one hand you are passing data that is between 0 than 1 and in the other you are saying not to display any decimals, since 0 is not an option in Log scale, you end up with an empty scale (1 to 1). -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted April 26, 2005 Author Report Share Posted April 26, 2005 SoftwareFX Support wrote: > Is not hiding any data, however it will not chose a Min for the X Axis that > can not be represented with zero decimals. Your data is still there but it > is outside of the viewable area, in other words, when Chart FX chooses the > range to display it can't come up with anything congruent with your data as > on one hand you are passing data that is between 0 than 1 and in the other > you are saying not to display any decimals, since 0 is not an option in Log > scale, you end up with an empty scale (1 to 1). > hmmm, I can't agree with this. I don't understand what the axis _label_ has to do with displaying the data? The axis is set to autorange, so I would expect the chart to show all the data. In effect, the autorange setting is trumped by how the axis data label is formatted, which seems really bizarre. It means you need to know how many decimal places your data is going to have before you build your chart. If this axis label can't be formatted with the current setting, then I would expect it to be blank, not assume you don't want to see the other data. Cheers, Steve Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 4, 2005 Author Report Share Posted May 4, 2005 Steve wrote: > SoftwareFX Support wrote: > >> Is not hiding any data, however it will not chose a Min for the X Axis >> that can not be represented with zero decimals. Your data is still >> there but it is outside of the viewable area, in other words, when >> Chart FX chooses the range to display it can't come up with anything >> congruent with your data as on one hand you are passing data that is >> between 0 than 1 and in the other you are saying not to display any >> decimals, since 0 is not an option in Log scale, you end up with an >> empty scale (1 to 1). >> > > hmmm, I can't agree with this. > > I don't understand what the axis _label_ has to do with displaying the > data? The axis is set to autorange, so I would expect the chart to show > all the data. In effect, the autorange setting is trumped by how the > axis data label is formatted, which seems really bizarre. It means you > need to know how many decimal places your data is going to have before > you build your chart. If this axis label can't be formatted with the > current setting, then I would expect it to be blank, not assume you > don't want to see the other data. > > Cheers, > Steve Hi, Was there an update on issue at all? Thanks. Steve. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.