comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » New free DLL for calling Python from IDL!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: New free DLL for calling Python from IDL! [message #88339 is a reply to message #88332] Tue, 15 April 2014 12:53 Go to previous messageGo to previous message
yuxipang is currently offline  yuxipang
Messages: 3
Registered: April 2014
Junior Member
Hi Helder,

I can run the codes (see below) provided by Chris Torrence on my OS64 Win7 laptop. I put the Slither.DLL and Slither.DLM in a separate directory on the IDL path, and added the following lines in the startup.pro file (based on suggestions from Ronn Kline's ebook).

PREF_SET, 'IDL_DLM_PATH', 'C:\WorkSpace\IDL\Slither\python33; <IDL_DEFAULT>', /COMMIT

When I put slither DLL/DLM files in the directory of C:\Program Files\Exelis\IDL83\bin\bin.x86_64\, it did not work for me.

The standard Python 3.3.3 and its extension packages (matplotlib, numpy and others)were downloaded from following sites ...
https://www.python.org/downloads/
http://www.lfd.uci.edu/~gohlke/pythonlibs/

========================================
plt = pyimport("matplotlib.pyplot")
sizes = [15,30,45,10]
labels = ['Frogs', 'Hogs', 'Dogs', 'Logs']
colors = ['yellowgreen', 'gold', 'lightskyblue', 'lightcoral']
explode = [0, 0.1, 0, 0]
p = plt.pie(sizes, explode=explode, labels=labels, colors=colors, $
autopct='%1.1f%%', shadow=1, startangle=90)
void = plt.axis('equal')
void = plt.show(block=1) ; block=0 used by Chris
=======================================
IDL> !VERSION
{
ARCH: "x86_64",
OS: "Win32",
OS_FAMILY: "Windows",
OS_NAME: "Microsoft Windows",
RELEASE: "8.3",
BUILD_DATE: "Nov 15 2013",
MEMORY_BITS: 64,
FILE_OFFSET_BITS: 64
}
========================================

Hope this helps, if you have any additional questions, please send me an email.

Yuxi
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: superresolution
Next Topic: How to find the confidence interval of a variable data at 95% or 66%?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:12:38 PDT 2025

Total time taken to generate the page: 0.00433 seconds