Programming :: Plot Individual Pixels In A Window?

Apr 6, 2010

It's been a while since I did any kind of graphics programming, but I would like to start learning how to do graphics stuff in *nix. I started reading the GTK+ 2.0 Tutorial, but a) I've only been able to write a small "Hello World" program, and that tested my patience, and b) I'm not seeing anything which allows you to plot a pixel directly. Back before I migrated to Linux, I used the Windows GDI SetPixel() function for plotting pixels sequentially (this was for a small fractal generator). Mostly what I'm asking is if there's any kind of equivalent function in *nix graphics APIs? GTK+? Would I have to deal with SDL/OpenGL?

View 3 Replies


ADVERTISEMENT

Software :: Gnuplot - Plot Individual Plots In Separate Windows?

Apr 1, 2010

I am new to gnuplot linux based plotting tool. I am trying to plot data from multiple data files and I want each plot to be open in a separate window. This is not happening in gnuplot script I have written, it holds the current window and plots the next data on the same window.A way I found to see separate plots was to use multiplot, but this plots multiple plots in the same window. Can someone tell me how to plot multiple plots in separate window in gnuplot? I could not find the answer in documentation/man pages.

[Code]...

View 1 Replies View Related

General :: Plot Stem-and-leaf Plot Using Perl?

Nov 11, 2010

I'm curious if anyone know how to plot stem-and-leaf plot using perl? Basically, what I was wanting to do is read a bunch of numbers from a text file into an array, sort from smallest to biggest, and plot the following (last digit serves as the "leaf", so for example, for the following graph, going down from top to bottom is 7, 7, 12, 13, 18, 18, 23, 25, 27, 27, 27, 27, 27, 27, 28, 28, 29, 59, 30, 31, 31 etc.):

[Code]....

View 1 Replies View Related

Debian Programming :: How To Plot With C++ Like JQplot

Jun 28, 2014

I need some C++ graphical lib to work with gtk+.

What I want is to plot like jQplot: [URL] .....

View 1 Replies View Related

Programming :: Get String Width In Pixels In Xlib?

Aug 3, 2009

I'm trying to get the width of a string in pixels this way:

Display *disp;
int len;
disp = XOpenDisplay(0);
font = XLoadQueryFont(disp, desc );

[code]....

I'm getting negative numbers as the the pixel length, eg -7275

View 3 Replies View Related

Programming :: Paint Pixels In C / C++ Without Going In To Object Oriented Prog?

Aug 24, 2009

I want to findout how to paint a line in C without using a line function or OOP. I want to control it by pixels.

View 6 Replies View Related

Programming :: Selecting VGA Planes Causes Existing Pixels To Change Colors?

Oct 28, 2009

using the code

Code:

void setplane(unsigned char mask){
inportb(0x3DA); //Reset the VGA flip/flop
unsigned char c=inportb(0x3C0); /*the VGA does not like you not saving values*/

[code]....

does not work, for example if setplane(1); will change all pixels plotted to blue - not just the newest. and here is how i plot pixels:

Code:

void ppixel(unsigned x, unsigned y, unsigned char color){
setplane(color);
((char far *)0xA0000000L)[(y*(640/8))+(x/8)]=((1<<7)>>(x%8));
}

View 2 Replies View Related

Programming :: Multiplexing 2 Streams To Tx Over Wireless & Demulteplexing On Rx To Individual O/P

Jan 24, 2011

HOW to Go about the Linux Programming of DATA FUSION

Need to Multiplex ( Mux ) two Data Streams broadcast over Wireless and then Demultiplex (DeMux )on the Receiving side and give output on Individual O/p Screens. : DETAILS ::

My main PROJECT is,
1) First Stream :: GPS Stream
2) Video Stream :: Conversion of Analog Signal to Digital ( Using Compression Divx :: Not an issue )

Tx : Merging the Two Streams ( Mux ) and then Transmitting over Wireless as a Single Stream.
Rx : DeMux the Stream and Display GPS Data on Different O/P Screen and Video Stream on Different O/P Screen.

::Boundaries::
For now A Terminal on Both Ends can perform the Function with a OS in the Later Stages it will be embedded.

View 1 Replies View Related

Programming :: Bash Text To Variable Accessing Individual Text Lines?

May 2, 2010

i am on processing text tasks And i found that if you assign a text to a variable is chomp'ed automatically the newline

Code:

variable=$(cat file.txt)

The problem is i can only access the items/lines using:

Code:

for line in $variable
do
echo $line
# Other commands
done

how do i convert this to an indexed array. More importantly, how do i get access to individual $line[0], ..., $line[n] Another thing, if the file.txt, has lines with spaces it is a mess using the for...in..., but echoing prints line by line...o_0

View 11 Replies View Related

Fedora :: Gnuplot Freezes After First Plot / Sort It?

Jul 8, 2011

I'm using 64-bit fedora 14 on my desktop. i was using gnuplot, but there was some power failure and my computer got shut down. now whenever i plot anything it freezes after first plot i have to force quit it

View 7 Replies View Related

OpenSUSE Hardware :: Scilab Crashes On Plot

May 17, 2010

I have openSUSE 11.1, DELL vostro 1500 with NVIDIA card (Which type?). I am runnnig SCilab 5.1.1 which crashes on plot. The same scilab runs on the same computer through Windows Vista (I have dual boot). I suppose this is a linux problem.

View 1 Replies View Related

General :: Use Xplot In Order To Plot A Spectrum?

Mar 6, 2011

I want to use xplot in order to plot a spectrum but when I executed the code by typing "xplot qso.fits" in terminal it returned the following error one after the other so I was force to stop the program using "Ctrl + C". (I am using Ubuntu 10.4 and I have also PGPLOT installed on my Linux).

[Code]...

View 1 Replies View Related

General :: Plot Band Structure Using Wien2k?

Sep 28, 2010

I want to plot band structure using Wien2k and for this I have to make a file named "case.klist_band". But I have a Rhomhedral compound . There is written to make the file using xcrysden but I donot know how to make the file from xcrysden.

View 2 Replies View Related

Software :: Plot Trace File Into A Graph?

Mar 22, 2011

how do i plot the trace file into a graph? can any 1 show an example here? just any trace file will do

View 13 Replies View Related

General :: Plot X Graph Ubuntu By Using Awk Scripts Indicating?

Mar 20, 2011

how can i plot x graph Ubuntu by using awk scripts indicating how can i change awk files into xgr files,

View 13 Replies View Related

Software :: How To Plot Fewer Error Bars In Xmgrace

Oct 28, 2010

How do I plot error bars for say, every 100th point, instead of for every single point? At the moment my plot looks like a thick band instead of a thin curve, since every point has an error bar attached to it.

View 2 Replies View Related

Ubuntu :: Adjusted Input Sound Volume And Maverick Lost The Plot?

May 10, 2011

I'm running Maverick on an HP dv6 laptop. I tried recording a video via VLC with the machine's 'TrueVision' webcam. The result seemed to lack audio, so I had a look in preferences > sound. The input tab had the mute button ticked, so I unticked it and tried adjusting the level (while realising I was probably just configuring the mic port and not the webcam's inbuilt mics).

Then things turned bad: pointer became sluggish, and changes I made to the level slider took ages to be reflected visually on screen. I queued up a pile of clicks on the 'close' button and went away for a while. On return, I was met with a box inviting me to stop a script with some screen-width-long incomprehensible name, which of course I did.

Now the system's in a state which sees windows missing title bars (tho' not menu bars) and (more problematically) the upper and lower bars on the desktop absent. I issued a hibernate command from the terminal in the hope that on waking the system would be 'fixed', but nothing changed. I tried alt-tabbing to access my open applications and close them gracefully but this command is ignored. I have 'zillions' of apps going with unsaved data and am not sure what to try next. I'd be happy just to be able to task switch to each open prog and exit it gracefully then restart. But my knowledge of the command line is such that your help is required =) .

View 6 Replies View Related

Ubuntu :: Screen Position A Few Pixels Off?

Oct 24, 2010

In 10.04 on a Shuttle the screen position is a few pixels off. I fix this with xvidtune for the session. I also get a new modeline. I build a new xorg.conf file (go virtual terminal, stop gdm, Xorg -configure, etc) and move it to /etc/X11. I introduce the modeline in the monitor section and reboot (I could do a service gdm stop...). Guess what, my screen is still a few pixels off. The documentation clearly states that if there is an Xorg.conf, it will be used. So what gives?

This problem has existed since the xorg.conf file was dropped. It is just plain silly that one has to engage in a geeky treasure hunt to correct a few pixels. This adjustment should be present in the System/Preferences/Montors. This is why Linux does not make it with ordinary users, making (superficially) simple things difficult.

View 1 Replies View Related

Fedora :: Resize An Image From Computer To 100 Pixels Or Less Than 100 Kb?

Jan 16, 2011

Im looking for resize an image from my computer to 100 pixels or less than 100 kb. I want to upload my picture profile here at the Fedoraforum.org

View 3 Replies View Related

Ubuntu Installation :: Monitor Offset By 10 Or 15 Pixels?

Mar 18, 2010

I have a new installation of Karmic 9.10 up and running but for some reason my Nvida Quadro NVS 280 SD graphics card can not align my Sony SDM-HX73 monitor correctly. On the left I'm missing 10 or 15 pixels and on the right I have a thin black strip of unusable screen.

View 2 Replies View Related

Ubuntu :: 10.10: Menu Pixels Freeze On Screen?

Dec 7, 2010

Eee PC 1005HA : Ubuntu 10.10 Netbook Remix, using Desktop Edition at login screen, using Awn in place of Unity: No clue what's causing this. Menu pixels freeze, remain on top of windows. Cursor floats over, but interacts with the actual active window. Can't move it. This has happened several times now, but usually only lasts a few minutes. At the time of this post, these pixels have been frozen for at least 20 minutes. Relogging fixes the problem, but logging out and in again every time this happens isn't really an option.

View 5 Replies View Related

Ubuntu :: Green Pixels When Using Dvi To Hdmi Cable To Tv?

Jun 13, 2011

I bought a 25 foot dvi to hdmi cable to play movies from my computer on my plasma tv. Green pixels appear on about 20% of the plasma screen; some jump around others stay in one place. I have a nvidia GeForce 7600 GT card. The nvidia restricted drivers are installed. I also tried using a mythbuntu live cd and had the same problems. Is this a problem with a bad cable, bad driver, wrong setup, or something else? How can I get rid of the green pixels?

View 3 Replies View Related

Ubuntu :: Screen Resolution Of 1366x768 Pixels?

Jun 18, 2011

Brand new laptop Lenovo G570 with Intel Integrated HD Graphics 3000, 15.6", 1366x768. can't detect the correct resolution with Ubuntu 10.04.2 LTS.

View 7 Replies View Related

General :: Screen Is Off Vertically By A Number Of Pixels?

Feb 16, 2010

Having recently installed puppy linux (pup431) on my sony pcg-c1mah laptop with a monitor of 1280x600, I am absolutely in love with it. It is so fast and smooth. However, there is one problem, the screen position is shifted up vertically, off by a few pixels (30 maybe). This makes most of the application partially off the screen, which is really annoying. Previously, I was able to install xubuntu (8.04) on it without any problem. The screen was perfectly positioned. It was the speed reason I decided to go for puppy linux. If xubuntu was able to set the screen correctly, why puppy linux can not.

View 4 Replies View Related

Software :: Text Is Colored Pixels During Boot?

Sep 11, 2010

I recently upgraded to Ubuntu 10.4 and, although that installation seemed to work OK for awhile, I have recently encountered a strange problem. I have a dual-boot system with Win XP and two releases of Ubuntu, 10.4 and 9.10. I installed the latter recently only to be able to run some legacy software. I believe the problem occurred sometime around or after the installation of the 9.10 package. Note that the 10.4 install was a clean install on a newly formatted HD, and not a normal upgrade from 9.10, which I installed later separately. The Ubuntu installations are on their own HD. Win XP is installed on its own separate HD.

Here's the problem. I can boot OK up to and including the appearance of the Grub 2 menu, which displays fine. From the menu I can chose Ubuntu 9.10, Win XP or several kernels of 10.4. The 9.10 Ubuntu boots completely normally, as does Win XP--no problems or irregularities with either of those. When I select one of the 10.4 Ubuntu kernels, the strangeness begins, as follows:

1.) The menu disappears, there is a brief period of blank screen, and then a bizarre screen appears. It has a violet/magenta background. The word "Ubuntu" appears in large type, with a couple of lines of text below it. However, all of the type is unreadable. Instead of being normal characters, all the text characters are displayed as blocks of seemingly random multi-colored pixels! I can recognize that it is supposed to be text, but the letters are just a bunch of colored pixels. I can recognize the large Ubuntu word because of its shape. Also, the whole text display occurs twice on the screen, one on the left and one on the right. Both are displayed as colored pixels.

2.) The screen stays there, as if frozen, and does not continue with installation of the kernel. After some experimenting, I discovered that if I press Ctrl-Alt-Del (!), the installation continues as one would expect: I soon get the normal login screen, am able to login OK, and my desktop soon appears as usual.

3.) However, once in the desktop, if I try to invoke a console window by pressing Ctrl-Alt-F1-6, the console window appears, but the text on the screen is again rendered as little bunches of colored pixels, completely unreadable. I can, in fact, login at these screens, but the text remains colored pixels. I can escape back to a normal desktop by then pressing Ctrl-Alt-F7, and the desktop comes back completely normal. Interestingly, if I invoke a terminal from the main Applications/Accessories/Terminal menu, I get a normal terminal in a desktop window that is perfectly usable.

4.) If, from the boot menu, I choose the Ubuntu 9.10 choice, everything works fine and as expected, including the Ctrl-Alt-F1-6 console windows. This problem only occurs with the Ubuntu 10.4 menu options.

Since this problem only occurs with the Ubuntu 10.4 menu choices, my guess is that there is something askew in the display configuration of those specific choices. But, I've not discovered what to check for that configuration or how to correct it. I've checked out the /boot/grub/grub.cfg file, the /etc/grub.d number files, and /etc/default/grub, but can't find anything that seems to be the cause or the remedy.

View 4 Replies View Related

Ubuntu Installation :: 9.1 - Can't Get To Boot - White Pixels At The Top Most Row Of The Screen

Feb 23, 2010

I recently downloaded Ubuntu 9.1 and burned it to a CD. However, I can't seem to get it to boot. I got to the main menu and selected to run it directly from CD, and the Ubuntu symbol showed up saying it was loading things, but then the screen went black and nothing happened even if I waited over 15 minutes. During this time the HDD light was flashing every second or two, and I could see about three white pixels at the top most row of the screen.

View 8 Replies View Related

Ubuntu Multimedia :: Video Playback Beyond 2048 Pixels?

Apr 26, 2010

I have a 30" LCD with 2560x1600 pixel resolution. I would like to make and play videos at this resolution, but software decode is too slow, and the GPU accelerated decode (VDPAU) maxes out at 2048 pixels. It might be possible to decode 2Kx2K and cut-and-paste and reorganize the rectangles to fill 2560x1600. But someday I plan on getting a 4K screen (4096x2160 pixels) and I would like to support that too. For that it seems two video streams decoded by two GPUs and exactly synchronized would work.

View 1 Replies View Related

Ubuntu :: Left And Right Edges Of Screen Within 2 Pixels Are Unresponsive?

May 11, 2010

i just installed ubuntu studio and it seems to be working fine but i'm having an issue where the both the left and right side edges of my laptop monitor are unresponsive/unclickable for about two pixels all the way down. it's a minor issue that i could probably get used to, but it's particularly annoying when trying to use a scroll bar in firefox or any other window that when maximized would have it just against the right side of the screen. instead of simply swiping the cursor all the way to the right i have to stop just short of the edge in order to use the scroll bar/any other function.

View 1 Replies View Related

Ubuntu :: Top Panel Of Default Theme 'breaks' Above 24 Pixels

Oct 17, 2010

Using the default theme in Ubuntu 10.10 I find that setting the top panel to more than the defalt 24 pixels size means that the extra pixels you add at the bottom are a different shade. It looks a bit rubbish, is there any way to fix this?

View 4 Replies View Related

Ubuntu :: Resolution - Missing Pixels - Didn't Look As Sharp

Dec 1, 2010

I did this whole process, [URL] It worked, but I have missing pixels. I thought it didn't look as sharp as it should, but when I went to facebook which uses small fonts, I could see part of the letters missing. (@ 100%)... 1440x900_60.00...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved