ROOTpy plottin color not working in example directory - rootpy

I have installed rootpy and matplotlib.
But when I trying to run plot_matplotlib_hist.py in example directory, matplotlib canvas color was OK but the color of ROOT canvas only dark.
It does not same color between matplotlib and ROOT.

Related

Black background color in app icon

I've a app icon image in png(transparent) of size 512 * 512. It works well ie. transparent bg in android but in iOS the app has black background. How can I make it transparent in iOS?
Black bg in app icon...
This happens when the size of the icon is incorrect. Apple has very specific requirements about the shape of the icon as you can see from all the icons around: they all look the same.
The best approach for iOS is to create a completely square image which will be cut automatically to the right size.
Assuming you want this icon for Android and a different icon for iOS you can use this tip: https://www.codenameone.com/blog/different-icons.html
In the build.xml find
<target name="build-for-android-device" ... >
Change the line:
icon="androidIcon.png"
Then copy your existing icon to androidIcon.png and replace icon.png with a square icon.

Canvas background color not as white as I need

I am setting the background color of my Canvas as 'white'. However when I compare my canvas with a vendor application, their canvas is 'whiter', which is the color I want for my canvas too. I have looked at all the color choices available for canvas background color but nothing makes my canvas any whiter than it is. Any suggestions would be appreciated.
Simple solution:
Use one of the browser plugins to get the actual "white" color of their app.
One example of a color-picker is Chrome plus the ColorZilla extension:
https://chrome.google.com/webstore/detail/colorzilla/bhlhnicpbhignbdhedgjhgdocnmhomnp

Is there any alternate for the app bar icon button circle in windows phone?

I found that all the app bar icon button has round layer, I know it is drawn by the App bar only; but my question is, can we make any other shapes like square or is there any alterations to do that.
can we able to draw any other shapes instead of that circle in the above image.
Nope, you're stuck with the circle unless you roll-your-own ApplicationBar-lookalike.
Charles Petzold's Programming Windows Phone 7 hints at this on pages 232-233:
The actual image should be white and occupy a 26-pixels square area in the middle of the bitmap.
Whilst the icons in C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Icons\ have the circles around them, the circles are excluded by the '26-pixel square area', and are re-added by the ApplicationBar. Thus, the circles are unable to be changed.
I saw people using regular rectangle-shaped buttons there but that was because they were not using the base app bar control. The app bar is not rendered by application and you have no control over the buttons other than specifying the icon and the label. You can use these regular rectangle-shaped buttons but I would not recommend it unless you have only 1..2 buttons, they always fit on screen and you don't need to use menu items.
I think if you change this icon located in this directory
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Icons\light\appbar.basecircle.rest.png
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Icons\dark\appbar.basecircle.rest.png

WP7 How to change the ellipses color in the application bar?

I have an app bar with custom colors to match the page color of our application. I have managed to get the images and app bar itself to the colors I want, but not the ellipses at the top right. I have set the background color to white and the foreground color to blue. In expression blend, it looks like the ellipses are set to blue, but when I run the app, they are white (same color as the app bar background) and basically invisible. Is there a way to change the color of the ellipses?
Not sure why it does not work for you but following code in sample application worked for me:
<shell:ApplicationBar IsVisible="True"
IsMenuEnabled="True"
ForegroundColor="Orange">
I created a new PivotApplication project for Windows Phone. In a new page, I added ForegroundColor property to application bar and it worked.

Silverlight Jetpack theme background colour

Does anyone know what the background colour is for the jetpack theme??
http://www.silverlight.net/content/samples/sl4/themes/jetpack.html
We're using the theme, but I can't see that light silver background colour which has a gradient through it.
Actually if you create a new project based on the JetPack theme, you will see there is a user control called TiledBackground which does the repeating effect for you.
However, the dependency property ResourceUri of this user control is binding to a wrong image file by default, I believe, and that's why you only see a light colored background.
To have the same background as in the demo, you simply need to replace the image backgroundtexture.png in the Images folder with the image file that Joe has provided. Then in the MainPage.xaml, you need to make sure the SourceUri is binding to this image.
For example, I have replaced with Joe's image and still named it backgroundtexture.png, and my project name is JetPack.
<controls:TiledBackground SourceUri="/JetPack;component/Images/backgroundtexture.png" />
Then you should see the dark background as expected. :)
It's actually an image that is repeated. To get the same effect you'll have to write a custom control or effect that tiles the image. Here's the image.
And here's a sample of tiling an image.
http://nokola.com/blog/post/2009/12/22/Fast-Tile-Brush-in-Silverlight-And-Easiest-Way-to-Shader-Effects.aspx

Resources