Let's say I have a 10X10 array that is a multiplication table, multiplied times some arbitrary integer constant. For this example, pretend that constant is 5. So the first row would be 5, 10, ..., 45, 50; the second row would be 10, 20, ..., 90, 100; etc. When doing a color plot, matplotlib numbers both axes by the index number, not the value contained therein. So how would I get this graph to have scales of 10n X 10n, not 10X10, using matplotlib?

Member Avatar
+0 forum 0

I would like to include a new answer type in WP-PRO Quiz with visual analog scale. I would also like to change the title of the answer type. Please help

Member Avatar
Member Avatar
+0 forum 1

Hello, I am new to visAD library. I am trying to plot a 'lowerTerrain.nc' file in visAD. But its longitude(-180 to +180) and latitude(-80 to +80) ranges are displayed automatically in -150 to +150 for longitude range(X axis) and -90 to +90 in latitude range(Y Axis). I have tried this: LatLonLines longLine=new latLonLines(RealType.Longitude,-180.0f,180.0f,30.0f); longLine.setVisible(true); But I don't know how to add this longLine object on the display. REFERENCE: https://www.unidata.ucar.edu/software/idv/docs/javadoc/ucar/visad/display/LatLonLines.html

Member Avatar
+0 forum 0

Hello Good day. I have an interesting question as it relates to adding a background image to a JPanel (or whichever component is best for what I'm trying to achieve. Hopefully I'll get some help here.) I have a large picture that I want to use as a background image and I want it to be the background for my JFrame. The only thing is that I don't want the image to resize when the JFrame resizes. I want the image to remain centered in relation to the JFrame's position and size, but I just don't want the view of …

Member Avatar
Member Avatar
+0 forum 3

anyone can help me? i have a task from my teacher. He asked me to make a simple image processing program that can process 2D image with this feature: -the program can make a translation, rotation (an angle of rotation with arbitrary), scaling, and shearing. -the program can make an input with "browse input image" feature. -result of processed image can be saved. addition: it will be better if the program support a clipping process. 2D objects that processed is prepared on a number of line segments in the world coordinate system. Data on these objects are presented in a …

Member Avatar
Member Avatar
+0 forum 7

I made an Edge animation with a stage which is, natively, 1600x900px. I've included it in an `<iframe>` linking to the HTML file outputted by Edge, on the page where it's to be displayed; as not all displays support this resolution, I wanted to use CSS media queries to resize the animation as the resolution went down. I've set up the `@media` syntax, and added the `transform:scale(x,y)` property to the `iframe` tag. Since they're *cascading* stylesheets, I though that the transform would also affect the Edge animation's elements, including the stage; however, it didn't, for some reason.<br> The problem consists …

Member Avatar
Member Avatar
+0 forum 2

Hi guys, I have a maybe simple question, but I'm wonder how they do this: [http://www.blacknegative.com/#!/adisseo/](http://www.blacknegative.com/#!/adisseo/) background image scale perfect in all screen resolution (even 2560x1440 or 800x1280), and the background picture is only ~1000 x 1000 pixels. I make similar effect with <img src=""> and some javascript, but they do not use img tags. I try to do that, but even with background-size ( css3) background was shrink and look bad. What's the logic or how to scale background image. Just want to pick the logic. Thanks in advance!!! p.s. If anyone try to see the javascript behind the …

Member Avatar
Member Avatar
+0 forum 1

Which of the two (Binary Image and Gray scale image) is easier to embed in a color image using Discrete Cosine Transform? I'm currently exploring image watermarking using discrete cosine transform. Thanks in advance!!! :)

Member Avatar
Member Avatar
+0 forum 2

Hello, for my Game I used this tutorial from riemers for automatically scalling graphics relative to the current resolution of the game window: http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2D/Resolution_independency.php If I change from the baseSize to another resolution the Mouse position gets messed up, I have a custom cursor on (int)ms.x, (int)ms.y but when I move it on a different resolution the real mouse is not at the same position as the custom cursor. Does anyone know a solution to this problem? this is how I draw the cursor: public override void Draw(GameTime gameTime) { MouseState ms = Mouse.GetState(); Game1.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, null, null, null, null, …

Member Avatar
+0 forum 0

Hello does anybody know how to scale a sprite or image to fit the whole render window? at the moment i have my checkers board but its in one corner of the window and i want it to fit the window entirely would be a great help :)

Member Avatar
Member Avatar
+0 forum 3

In my Forms application i tried to resize a pictureBox control during runtime and it seems to give some trouble. There is scale factor scalex , scaley which i applied to the width and height property of the control. [CODE] tempw = 980.0f; temph = 130.0f; tempw = float.Parse(pictureBox1.Width.ToString()); temph = float.Parse(pictureBox1.Height.ToString()); tempw = pictureBox1.Width; temph = pictureBox1.Height; pictureBox1.Width = (int)(tempw * scaleX); pictureBox1.Height =(int)(temph * scaleY); [/CODE] when i use lines 1&2 there is no problem but when i use lines 3&4 or 5&6 the box expands to a large value and i get a "out of memory exception".All …

Member Avatar
Member Avatar
+0 forum 6

HELLO.. I've been designing web pages in dreamwaever 8 and i have put a table inside a div. No matter what i try the table wont scale accordingly inside the div. It always scales along the div. its width is 200px but automatically scale up to somewhere around 500px.. :( If i remove div tag, then the table scales without any trouble. what can i do for this? thank you...

Member Avatar
Member Avatar
+0 forum 10

Hi, I've only learned c++ for about 2months, I've basically learned up to arrays, two and multiple dimensions but not in-depth. Currently reading through pointers. I've managed to achieve a similar graph to what i am supposed to have. What I'm getting. [IMG]http://i109.photobucket.com/albums/n79/johnz13/graph1.jpg[/IMG] Should look like. [IMG]http://i109.photobucket.com/albums/n79/johnz13/graph.jpg[/IMG] Problem I am having is trying to make it smaller/similar to what its supposed to be. I was thinking of changing the variable of x in the formula y = 3*sin(2*pi*x/8) and then using a separate variable, in this case t, as a double. [CODE] const double pi = 3.141592654; int i, j, …

Member Avatar
Member Avatar
+0 forum 13

[B]Background[/B] I was looking for a simple control in wxWidgets which I could use to plot out [i]some value[/i] against time, but I found that apparently I was the only one that needed that kind of graph. (so I don't know why I'm posting it... but anyway). I decided to create my own class. In the snippet below I choose the Y-axes in a range from 0-100 (% for example) and the x-axes in 3 different scales: 1 hour, 1 day and 2 weeks. This may or may not be useful in your case, so change it if you need …

Member Avatar
Member Avatar
+0 forum 1

Sometimes I see great javascripts on the net, but the size is wrong for the space on my web page, either the javascript is too small or too big, it would be great if I could re scale it so that it would fit in the space I have available. Can we do something to override how big the javascript is, either by saying, make this javascipt, say 90% or 150%, or saying make this javascript 10% smaller or 50% bigger, or say make this javascript fit say this many pixels, say the javascript is 400 pixels high by 200 …

Member Avatar
Member Avatar
+0 forum 6

The End.