Hi,
I want to draw 2-d histograms using imshow() with matplotlib. I managed to do this with the following code and the image generated is the one I am interested in and I have attached.
...
Type: Posts; User: abraxas334; Keyword(s):
Hi,
I want to draw 2-d histograms using imshow() with matplotlib. I managed to do this with the following code and the image generated is the one I am interested in and I have attached.
...
Thanks for all the replies! This helped alot!
I have a question regarding replacing line in files.
I want to replace the ith line of replace.dat with the jth line of othertext.dat how can i achieve this?
I would like to know how to do the following:
I have a directory with exactuable scripts:
$path_to_dir/mm_script1
$path_to_dir/mm_script1
$path_to_dir/mm_script1
at the moment I can execute...
Hi I was wondering it is at all possible to install a grphics driver not as root, i.e using sudo?
Thanks!
Thanks for the reply! If i specify the library path I get the same error.
My system admin is also not very helpful..
I'll work something out tho!
Hi,
I am using a computer with 3 nvidia graphic cards, but I am not sure if it has the cuda development toolkit installed.
I tried running a simple hello world program and I get the following...
Ok i guess i sloved it myself:
#!/bin/bash
arr=(foo*.dat) # * is list of all file and dir names
n=${#arr[@]}
echo "number of files and dirs "$n
No not quite, I want the numbering to be continuous, at the moment there is a random gap in the numbering somewhere, as in it goes from say 0 to 50 and then starts again at 150. the underscore I...
The mv you suggest assumes that foo_"$j".xvg is a directory.
The error I get is that the target is not a directory...
Hi
I have the following problem I am not sure how to solve elegantly.
I have a directory with 203 files named foo_*.xvg for the * substitute numbers from 0 to 302
Now evidently the numbering...
Female 24, research..mainly programming in c++/python
Hi,
I dont know matlab, but I am forced to use it, yet I seem to waste my time doing very simple things just because I don't know how to.
I have a character array from the dir function:
...
Has anyone had any experience running openCL on ubuntu? I am about to install the sdk, as I want to develop some kernals, which will eventually run with GPU acceleration. But my laptop hasn't got...
thanks, I knew it was something silly like that. And indeed mkdir obviously also checks if it is there, and i am obviously using it to create the directory...coding past 10pm = my brain not...
I need to check if a directory tree exists.
Essentially i want to check top directory if it doesn't exist create it. Then check if first subdirectory exists if it doesn't create it etc.
I wrote a...
Yep that is pretty much what my idea was as well. I guess i just wanted to avoid the io and see if there was a more elegant solution which i am not quite aware of.
Thanks for the input :)
Well each number will occur at least once. The pairs actually represent edges on a graph (network) and I am trying to work out the degree distribution of it. Everything suggests, that it has a scale...
The range of numbers is somewhere between 0 and 2^28 all integers obviously. But for each number there is in that range, i want to know how often it occurs and it needs to be accurate.
Hi,
this may be a very simple question, but i don't know how to solve it efficiently.
I have a very large 2-D vector (vector <vector <long> >), of size matrix[n][2];
n>500000.
The vector is...
Just a quick question about some code i am trying to understand.
Looks something like this:
...
int myRand;
myRand = rand(); //creates rand int between 0 and RANDMAX
int shift =...
Ah specifiying the constructor worked like magic :) Thanks alot!
the idea is to get rid of the static in cProtein, so i dont need to recompile everytime I want to change the length!
I have a question about class structures in c++.
i have a manager class cManager. Within this class a private variable is an instance of an other class cProtein.
roughly looks like this:
...
It worked like magic! Thanks alot :)