Hello everyone,
Are there any suggestions about tools I could use to plot a two-dimensional array?
Thank you,
Todd
Hello everyone,
Are there any suggestions about tools I could use to plot a two-dimensional array?
Thank you,
Todd
plot an array in which way?
I'm visualizing an histogram as a 'wto dimensional array', but
probably I'm just dumb and can't see what you mean
Have you looked at RMagick and SVG::Graph ?
il 10 Jun 2004 03:47:40 -0700, piir@earthlink.net (Todd Gardner) ha scritto::
Hello everyone,
Are there any suggestions about tools I could use to plot a two-dimensional array?
piir@earthlink.net (Todd Gardner) wrote in message news:<9b849915.0406100247.2cadfc9a@posting.google.com>...
Are there any suggestions about tools I could use to plot a two-dimensional
array?
Check the RAA; there are a number of options. My own project charts
data to SVG output:
--- SER
Hello!
On Thu, Jun 10, 2004 at 07:48:38PM +0900, Todd Gardner wrote:
Hello everyone,
Are there any suggestions about tools I could use to plot a two-dimensional array?
If you are looking for a complete scientific framework you
may want to have a look at ROOT:
It has Python and Ruby bindings. I have done the latter.
Regards,
--
University of Athens I bet the human brain
Physics Department is a kludge --Marvin Minsky
I am using Windows 2000... :~(
If you are looking for a complete scientific framework you
may want to have a look at ROOT:It has Python and Ruby bindings. I have done the latter.
R might be another option.
www.r-project.org
Use a pipe or the R-ruby bindings.
Good luck,
-Armin.
Hello Armin,
Thanks for RMagick suggestion. It looks very useful. I am getting
some errors trying to use it however.
After successfully installing in on my Windows 2000 machine, I type
the following:
require 'RMagick'
And, I get the output:
c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.5.0-mswin32/lib/RMagick.rb:5:
uninitialized constant Magick (NameError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:54:in `require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:54:in `require_gem'
from c:/ruby/lib/ruby/site_ruby/1.8/RMagick.rb:11
from 010.rbw:1:in `require'
from 010.rbw:1
Exit code: 1
The line that the error refers to is:
images = Magick::ImageList.new("images/Button_A.gif",
"images/Button_B.gif", "images/Button_C.gif")
Any suggestions how I can fix this?
Thank you again!
Todd
ser@germane-software.com (Sean Russell) wrote in message news:<83173408.0406100808.169eb023@posting.google.com>...
piir@earthlink.net (Todd Gardner) wrote in message news:<9b849915.0406100247.2cadfc9a@posting.google.com>...
> Are there any suggestions about tools I could use to plot a two-dimensional
> array?Check the RAA; there are a number of options. My own project charts
data to SVG output:--- SER
I am using Windows 2000... :~( I have looked through this site
however I can't figure out how to use SVG::Graph with Windows 2000?
Do you that any pointers as to what I am doing wrong?
Thank you,
Todd
Armin Roehrl wrote:
If you are looking for a complete scientific framework you
may want to have a look at ROOT:It has Python and Ruby bindings. I have done the latter.
R might be another option.
www.r-project.org
Use a pipe or the R-ruby bindings.
Gnuplot is nice, too. The latest version has 3d plotting with interactive rotation, zoom, etc.
piir@earthlink.net (Todd Gardner) wrote in message news:<9b849915.0406110208.233bd66@posting.google.com>...
Hello Armin,
Thanks for RMagick suggestion. It looks very useful. I am getting
some errors trying to use it however.After successfully installing in on my Windows 2000 machine, I type
the following:
require 'RMagick'And, I get the output:
c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.5.0-mswin32/lib/RMagick.rb:5:
uninitialized constant Magick (NameError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:54:in `require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:54:in `require_gem'
from c:/ruby/lib/ruby/site_ruby/1.8/RMagick.rb:11
from 010.rbw:1:in `require'
from 010.rbw:1
>Exit code: 1The line that the error refers to is:
images = Magick::ImageList.new("images/Button_A.gif",
"images/Button_B.gif", "images/Button_C.gif")Any suggestions how I can fix this?
Thank you again!
Todd
Todd,
I don't understand why this is happening. What script are you running?
Is it one of the RMagick sample programs? Can you get any script that
uses RMagick to work? Try this simple test - does it work?
ruby -r RMagick -e'p Magick::Long_version'
===========
Tim,
I get an identical error. I can't run any script that uses (require
'RMagick'), however it said that it installed 1.5 O.K. I am using
Windows 2000
Todd
Tim,
I get an identical error. I can't run any script that uses (require
'RMagick'), however it said that it installed 1.5 O.K. I am using
Windows 2000Todd
Allow me to barge in... The 1.5.0 binary gem release is quite new and
you might actually be the first trying to really put it to use on a
windows 2k machine.
Can you verify the following:
a) Can you
~ require 'rubygems'
~ require_gem 'RMagick'
~ from irb ?
b) Does your gem installation look ok ? RMagick.so and RMagick.rb there,
another RMagick.rb in your site_ruby path ?
Your error looks like the shared object is not loaded at all. If you
hang in there, I would like to help you get this running.
- --
kaspar
semantics & semiotics
code manufacture
www.tua.ch/ruby
Kaspar,
I am quite the novice to ruby however, I'm willing to try to get this
code running. I have no idea what might be important so I have just
copy a bunch of things into here. Story for the multitude.
Let me tell you what I believe I have done up to this point.
=============================================
I installed:
ruby181-13.exe
=============================================
I had previously installed:
Python-2.3.2-1.exe
=============================================
I typed:
gem --install-stub -i RMagick-win32-1.5.0-mswin32.gem
Which returned:
Attempting local installation of 'RMagick-win32-1.5.0-mswin32.gem'
Successfully installed RMagick-win32 version 1.5.0
=============================================
> Tim,
> I get an identical error. I can't run any script that uses (require
> 'RMagick'), however it said that it installed 1.5 O.K. I am using
> Windows 2000
> Todd
Allow me to barge in... The 1.5.0 binary gem release is quite new and
you might actually be the first trying to really put it to use on a
windows 2k machine.
Can you verify the following:
a) Can you
~ require 'rubygems'
~ require_gem 'RMagick'
~ from irb ?
=================================================
from SciTE
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require_gem 'RMagick'
NameError: uninitialized constant Magick
from c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.5.0-mswin32/lib/RMag
ick.rb:5
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:54:in
`require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:54:in
`require_gem'
from (irb):2
irb(main):003:0> exit
==============================================
b) Does your gem installation look ok ?
When press F5 from SciTE Version 1.59:
E:\Documents and Settings\tnt\ruby\Ruby Gems\rubygems-0.6.1\install.rb
I get back:
ruby install.rb
Successfully built RubyGem
Name: sources
Version: 0.0.1
File: sources-0.0.1.gem
Successfully installed sources version 0.0.1
Exit code: 0
=============================================
When I type into the MS-DOS promt:
gem --local --info progressbar
I see:
--- !ruby/object:Gem::Specification
rubygems_version: "0.6"
name: progressbar
version: !ruby/object:Gem::Version
version: 0.0.3
date: 2004-06-12 00:53:20.171000 -07:00
platform:
summary: "Ruby/ProgressBar is a text progress bar library for Ruby.
It can indicate progress with percentage, a progress bar, and
estimated remaining time."
require_paths:
- lib
files:
- sample/test.rb
- lib/progressbar.rb
- docs/progressbar.en.rd
- docs/progressbar.ja.rd
- ChangeLog
autorequire: progressbar
author: Satoru Takabayashi
required_ruby_version: !ruby/object:Gem::Version::Requirement
requirements:
-
- ">"
- !ruby/object:Gem::Version
version: 0.0.0
email: satoru@namazu.org
homepage: http://namazu.org/~satoru/ruby-progressbar/
==========================================
RMagick.so and RMagick.rb there,
RMagick.so
C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.5.0-mswin32\lib
3.04 MB
RMagick.rb
C:\ruby\lib\ruby\site_ruby\1.8
288 bytes
- and -
RMagick.rb
C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.5.0-mswin32\lib
434 bytes
===============================================================
RubyGems Documentation Index
Gem Name Description Documentation
progressbar-0.0.3 Ruby/ProgressBar is a text progress bar library for
Ruby. It can indicate progress with percentage, a progress bar, and
estimated remaining time. None installed
RMagick-win32-1.5.0-mswin32 RMagick is an interface between the Ruby
programming language and the ImageMagick and GraphicsMagick image
processing libraries. None installed
sources-0.0.1 This package provides download sources for remote gem
installation None installed
=============================================
gem --alien
Performing the 'alien' operation
Checking gem database for inconsistencies
c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.5.0-mswin32
c:/ruby/lib/ruby/gems/1.8/gems/sources-0.0.1
c:/ruby/lib/ruby/gems/1.8/gems/progressbar-0.0.3
RMagick-win32-1.5.0-mswin32 has 2 problems
config/type-windows.mgk:
installed file doesn't match original from gem
lib/RMagick.rb:
installed file doesn't match original from gem
sources-0.0.1 has 2 problems
c:/ruby/lib/ruby/gems/1.8/cache/sources-0.0.1.gem:
Invalid checksum for Gem file
c:/ruby/lib/ruby/gems/1.8/cache/sources-0.0.1.gem:
Unmanaged files in gem: ["lib/sources.rb"]
progressbar-0.0.3 has 2 problems
c:/ruby/lib/ruby/gems/1.8/cache/progressbar-0.0.3.gem:
Invalid checksum for Gem file
c:/ruby/lib/ruby/gems/1.8/cache/progressbar-0.0.3.gem:
Unmanaged files in gem: ["sample/test.rb", "lib/progressbar.rb",
"docs/progressbar.ja.rd", "docs/progressbar.en.rd", "ChangeLog"]
==========================================================
gem --rubygems-info
another RMagick.rb in your site_ruby path ?
Your error looks like the shared object is not loaded at all. If you
hang in there, I would like to help you get this running.
I would be glad to test whatever I can.
- --
kaspar
semantics & semiotics
code manufacture
www.tua.ch/ruby
Please let me know you have any questions.
Thanks in advance for any suggestions.
Todd
Hello Todd,
type-windows.mgk and RMagick.rb don't match the original files from the
gem. The first mismatch is ok, that file gets modified on your system
with your Font files (in postinstall procedure). The second mismatch is
weird; Could you send that file to my private adress ? I will have a
look at how it mismatches.
Have you executed postinstall ? You did not mention that.
Otherwise I am still puzzled..
kaspar
semantics & semiotics
code manufacture
Hello Todd,
type-windows.mgk and RMagick.rb don't match the original files from the
gem. The first mismatch is ok, that file gets modified on your system
with your Font files (in postinstall procedure). The second mismatch is
weird; Could you send that file to my private adress ? I will have a
look at how it mismatches.
Have you executed postinstall ? You did not mention that.
Otherwise I am still puzzled..
kaspar
I did execute postintall.rb. Sorry for not mentioning that.
The result was:
ruby postinstall.rb
RMagick 1.5.0 win32 Post Installation (see enclosed README for license
information)
detecting available fonts, writing to config/type-windows.mgk...ok.
setting MAGICK_CONFIGURE_PATH to
'c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.5.0-mswin32/config'.
setting is only for current user.
all done.
Exit code: 0
I'll send you RMagick.rb to your private address soon.
When I type and names of the files you mentioned I get the following output.
irb(main):001:0> type-windows.mgk
(irb):1: warning: Object#type is deprecated; use Object#class
NameError: undefined local variable or method `windows' for main:Object
from (irb):1
irb(main):002:0> RMagick.rb
NameError: uninitialized constant RMagick
from (irb):2
Hello Kaspar,
C:\ruby>cd lib\ruby\gems\1.8\gems\RMagick-win32-1.5.0-mswin32\lib
C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.5.0-mswin32\lib>dir
Directory of C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.5.0-mswin32\lib
06/11/2004 01:57a <DIR> .
06/11/2004 01:57a <DIR> ..
06/12/2004 01:42a 45,079 RMagick.rb
06/12/2004 01:42a 3,193,856 RMagick.so
2 File(s) 3,238,935 bytes
2 Dir(s) 6,216,265,728 bytes free
C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.5.0-mswin32\lib>irb
irb(main):001:0> require 'RMagick.rb'
=> true
irb(main):002:0> require 'RMagick.so'
=> false
Todd