Simple question. But I just can't seem to find the answer.
I've tried setting background patterns and styles to none.
It must be me.
I think I've found it.
You click in the Axis Properties and select Axis Options and then remove the check for Use Interlace Colour
et voilĂ !
I'm assuming you're using 2008 since it's not mentioned - let me know if I need to update this.
Right click on the Axis and make sure Show Major Gridlines is unchecked:
Edit after comment:
Another way you can have bands in charts is through Striplines. Do you have anything set up under this property for your Axis?
Remove any that exist in the Collection.
Related
I make this simple report with chart in BIRT:
but when I added grouping on Y axis, then bar became very tight and unevenly distributed.
How can I make this bar bigger ?
Steps to solve your issue :
Edit your chart,
then go in the format chart,
click on Chart Area
on the bottom, click on the "General properties"
a pop-up named General Properties is open.
Change the Unit Spacing (0 is for 100% - I suggest you 10)
1. Then click on Apply
2. and click on Finish
See :
Quite late to the party but I was having this exact issue and tried to fix it by changing the Unit Spacing only with no luck. So here's what I did in case someone stumbles upon this question like me:
I followed the same steps and changed unit spacing to 25 (but any number closer to 0 will help)
Then I removed the "Optional Y Grouping" here
Data set definition
And defined the Series Grouping instead in the "Color By" -> "Categories"
Series Grouping
I'm not a BIRT expert but this approach serves the same purpose for me and actually allowed me to change the width
I seem to have made some settings change where all of my MATLAB plots (plot, plot3, surf, etc) show up in this red/green color scale:
I searched around forums and the MATLAB user guide but am not finding anything. It's not a huge deal, as I can enter code to fix this on each plot, but I shouldn't have to.
How to fix this?
Check startup.m you seem to have set your default colormap to autumn or something. Just put it back to either jet (pre 2015a), or parula.
I don't know about the whole settings. These two commands can reset a figure properties (including its colormap) to its default values:
h=gcf;
reset(h)
This way you assign a handle to the last figure you have. Then, the second command resets its options to default values.
Update after Adrian's comment: Check out this page: Default Property Values It clearly shows how is it possible to regenrate the problem you have and you might need use the remove option for removing user-defined default value. There is a factory defined colormap accessible by the function: get(groot,'factoryFigureColormap'). This might help you too.
I'm trying to create a pie chart in Cognos BI that shows complete labels. I can't figure out how to do this. I have included an image that shows how the current report truncates the labels and places three dots (...) at the end of each label. I have a couple questions:
Can what I want to do be accomplished?
Why does every label end with "..." and can they be eliminated?
Update: I'm running Cognos BI 10.1.1
I don't think you you can absolutely prevent it. But you can make the text longer. In your chart, select the label. In the properties, under general, you'll see Text Truncation. Click the ellipse by it. It's probably set to the default of automatic. Change it to manual, and you can put in whatever number of characters you want it to show.
Keep in mind that this can end up giving you some kind of funky looking charts. The hover will show the full value of the column if you need to be able to see it on demand.
I want to add legend to matlab pie instead of just putting the names close the pie itself. That is, I want names to be displayed in a box, and the percentage to be displayed close to the pie (as it usually is). But if I simply add a legend, as follows, it will be not attached to the patches information:
pieH=pie([.3,.4,.3]);
legend({'Leg1','Leg2','Leg3'},'location','EastOutside');
I've tried turning the patch annotation icon display to on, as follows, but it didn't work:
set(get(get(pieH(1),'Annotation'),'LegendInformation'),'IconDisplayStyle','on')
set(get(get(pieH(3),'Annotation'),'LegendInformation'),'IconDisplayStyle','on')
set(get(get(pieH(5),'Annotation'),'LegendInformation'),'IconDisplayStyle','on')
I also tried passing the patched handles, as it says in the help, also with no effect:
legend([pieH(1:2:end)],{'Leg1','Leg2','Leg3'},'location','EastOutside');
Edit
I was using matlab handle graphics version 2, and it seems that this combinations does not work yet at new graphics version. Since it is a matlab bug and this topic led me to the discovering, I am closing it. But if someone, by chance, already had this issue and knows how to workaround please let me know.
here's a way to make it work:
X=[100 200 300];
h=pie(X);
legend(h(1:2:end), 'Small', 'Medium', 'Large','location','EastOutside');
In R2010b, I can reset the tick labels to auto thru figure editor,
but I'd like to reset them to default programmatically
I tried
set(gca,'XTickLabel','auto')
But it displays 'auto' at each tick... Any hint ?
You need to set XTickLabelMode to 'auto':
set(gca,'XTickLabelMode','auto')
Tick label modes are set to 'manual' when you specify tick labels. So, you need to turn it back to 'auto'.
OK, I finally found this way:
set(gca,'XTickLabel', num2str(get(gca,'XTick')'));
I read the ticks and transform them back to strings...
EDIT: note that this a workaround that happens to work if you don't zoom nor resize the figure, but which is not robust to zoom/resize because the XTickLabelMode remains 'manual' and thus the XTickLabel won't be updated when you zoom.
I added this answer because this is the first thing I found (and others might find too).
The reason why it is not the preferred way is more usefull than the answer itself, thus this edit.
The right solution to do it, is the one that I accepted.