AndroidPlot How to adjust spacing between legend items - legend

Is there a way to adjust the spacing between particular items of the legend?
Right now, the space is equally distributed among the items, which looks quite ugly with a mixture of very short and very long labels. What I want is to have a constant amount of space between a label and the following icon. How can I achieve this?

Related

I want to fill between lines but only where the price has been

I have multiple vertical, horizontal and angled lines in a script, and I want to fill the areas where price has been. Is there a way t do this?
I’m not sure what to try. I have searched but cannot find anything…

How do I keep two labels from overlapping, but have a dynamic width?

I have two labels on the opposite sides of a UICollectionViewCell that both have dynamic widths. As seen in the screenshot bellow, the "Cream Cheese" and "$15.79" are automatically overlapping because of their dynamic widths.
I want to keep both of those label's dynamic widths, but if the two come into contact, I want the label on the right of the UICollectionViewCell to be the preferred label. That would mean that the width of the label on the right is minimized depending on the dynamic width of the right label. Does anyone know of any ways to accomplish this?
If you are doing this through Interface Builder, you should have a constraint for horizontal spacing between the two labels...
...and give a higher content compression resistance for the label on the right.
That way, it will expand and the longer label will have a shorter width, just as you'd expect.

Is there a straightforward way to specifically position bootstrap elements

I'd like to position bootstrap elements - buttons or other, at a given horizontal start position on my page. The exact horizontal position should vary dynamically. It seems html (and to some extent bootstrap) wasn't exactly cut out for this but is there a good way to reliably accomplish that?
My best shot is fiddling with its horizontal margin. Is there something even more straightforward, that will bypass the need to consider all other elements in its column and can directly use the desired height regardless of what's else in the column?

How to resize UILabels to fit content?

My program currently has thirty UILabels that may contain numbers between one and three digits. I want my UILabels to expand and shrink horizontally as the numbers within them change size. At the moment the text is shrinking and the UILabels size remains the same.
If this can be done just using the xib file this would be preferable to doing so programmatically but if this isn't possible either would be great.
Thanks
After setting the text of the label, call sizeToFit on the label. This will make the label just big enough for the text.
BTW - why do you need to do this? Why not just make the labels big enough for the possible values and leave them that size? What benefit do you think you will get by shrinking the labels?

Can i automatically set the margins for my subplots?

The margins of my plots are unfortunatly too small for the Text i want to set there, 45* rotated:
How can i prevent the Labels for the datapoints from overlapping into the title? Would be best if it were computed, so i don"t have to manually adjust it.
How can i remove all the whitespace around the graphs?
If you have an up to date matplotlib version, you can try using Tight Layout. Otherwise you will have to do it by hand with subplots_adjust.