Skip to content

x.plot(s,bg=bg) does not output image #2137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Rex-Diego opened this issue Nov 1, 2016 · 6 comments
Closed

x.plot(s,bg=bg) does not output image #2137

Rex-Diego opened this issue Nov 1, 2016 · 6 comments

Comments

@Rex-Diego
Copy link

Rex-Diego commented Nov 1, 2016

I tried this demo , and expected to have . But I only got
<vcs.displayplot.Dp at 0x7f73660064b0> as an output in jupyter notebook. What should I do to have that image in my notebook?

BTW, this is the code that I tried with python 2.7.12:

import vcs
import cdms2
# MAke sure sample data is here
vcs.download_sample_data_files()
f=cdms2.open(vcs.sample_data+"/clt.nc")
# LOAS SAMPLE DATA
s=f("clt")
# Create vcs canvas (basically X window to draw in)
x=vcs.init()
# plot data as is
#because we are in jupyter using bg=True to plot thing in background (no flashing on your screen)
bg=True
x.plot(s,bg=bg)

and this is my python version detail on ubuntu14.04:
(anaconda2-4.1.0/envs/uvcdat) rex@ubuntu:~$ ipython
Python 2.7.12 |Continuum Analytics, Inc.| (default, Jul 2 2016, 17:42:40)
Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]:

@doutriaux1
Copy link
Contributor

THis only works in the nightly version of uvcdat. It will be available in the next stable release which should be out this week.
To obtain the nightlies see:
https://github.com/UV-CDAT/uvcdat/wiki/Obtain-UV-CDAT-nightly-packages

@Rex-Diego
Copy link
Author

Rex-Diego commented Nov 2, 2016

@doutriaux1 But I'm using nightly version. It's 2.6-42-g910814b, Right?

@doutriaux1
Copy link
Contributor

hum.. please post here your conda info thx

@Rex-Diego
Copy link
Author

FYI,this is the output of conda info:

(anaconda2-4.1.0/envs/nightly) rex@ubuntu:~$ conda info
Current conda install:

             platform : linux-64
        conda version : 4.1.12
    conda-env version : 2.5.2
  conda-build version : 1.21.2
       python version : 2.7.11.final.0
     requests version : 2.10.0
     root environment : /home/rex/.pyenv/versions/anaconda2-4.1.0  (writable)
  default environment : /home/rex/.pyenv/versions/anaconda2-4.1.0/envs/nightly
     envs directories : /home/rex/.pyenv/versions/anaconda2-4.1.0/envs
        package cache : /home/rex/.pyenv/versions/anaconda2-4.1.0/pkgs
         channel URLs : https://repo.continuum.io/pkgs/free/linux-64/
                        https://repo.continuum.io/pkgs/free/noarch/
                        https://repo.continuum.io/pkgs/pro/linux-64/
                        https://repo.continuum.io/pkgs/pro/noarch/
          config file : None
         offline mode : False
    is foreign system : False

Thanks!

@doutriaux1
Copy link
Contributor

My bad, i always confuse the two, I meant: conda list

@Rex-Diego
Copy link
Author

Rex-Diego commented Nov 2, 2016

It doesn't matter, conda list shows:

(anaconda2-4.1.0/envs/nightly) rex@ubuntu:~$ conda list
# packages in environment at /home/rex/.pyenv/versions/anaconda2-4.1.0/envs/nightly:
#
Using Anaconda Cloud api site https://api.anaconda.org
_nb_ext_conf              0.3.0                    py27_0  
alabaster                 0.7.9                    py27_0  
anaconda-client           1.5.3                    py27_0  
astroid                   1.4.7                    py27_0  
babel                     2.3.4                    py27_0  
backports                 1.0                      py27_0  
backports_abc             0.4                      py27_0  
basemap                   1.0.7                np19py27_0  
cairo                     1.12.18                       6  
cffi                      1.8.3                    py27_0  
clyent                    1.2.2                    py27_0  
configparser              3.5.0                    py27_0  
cryptography              1.5.2                    py27_0  
curl                      7.49.0                        1  
cycler                    0.10.0                   py27_0  
decorator                 4.0.10                   py27_0  
docutils                  0.12                     py27_2  
entrypoints               0.2.2                    py27_0  
enum34                    1.1.6                    py27_0  
fontconfig                2.11.1                        6  
freetype                  2.5.5                         1  
functools32               3.2.3.2                  py27_0  
geos                      3.3.3                         0  
get_terminal_size         1.0.0                    py27_0  
glib                      2.43.0                        1  
idna                      2.1                      py27_0  
imagesize                 0.7.1                    py27_0  
ipaddress                 1.0.17                   py27_0  
ipykernel                 4.5.0                    py27_0  
ipython                   5.1.0                    py27_0  
ipython_genutils          0.1.0                    py27_0  
ipywidgets                5.2.2                    py27_0  
jbig                      2.1                           0  
jedi                      0.9.0                    py27_1  
jinja2                    2.8                      py27_1  
jpeg                      8d                            2  
jsonschema                2.5.1                    py27_0  
jupyter                   1.0.0                    py27_3  
jupyter_client            4.4.0                    py27_0  
jupyter_console           5.0.0                    py27_0  
jupyter_core              4.2.0                    py27_0  
lazy-object-proxy         1.2.1                    py27_0  
libffi                    3.2.1                         0  
libgfortran               3.0.0                         1  
libpng                    1.6.17                        0  
libsodium                 1.0.10                        0  
libtiff                   4.0.6                         2  
libxml2                   2.9.2                         0  
markupsafe                0.23                     py27_2  
mistune                   0.7.3                    py27_0  
mkl                       11.3.3                        0  
nb_anacondacloud          1.2.0                    py27_0  
nb_conda                  2.0.0                    py27_0  
nb_conda_kernels          2.0.0                    py27_0  
nbconvert                 4.2.0                    py27_0  
nbformat                  4.1.0                    py27_0  
nbpresent                 3.0.2                    py27_0  
nose                      1.3.7                    py27_1  
notebook                  4.2.3                    py27_0  
numpy                     1.9.2                    py27_2  
openblas                  0.2.14                        4  
openssl                   1.0.2j                        0  
path.py                   8.2.1                    py27_0  
pathlib2                  2.1.0                    py27_0  
pep8                      1.7.0                    py27_0  
pexpect                   4.0.1                    py27_0  
pickleshare               0.7.4                    py27_0  
pip                       8.1.2                    py27_0  
pixman                    0.32.6                        0  
prompt_toolkit            1.0.8                    py27_0  
psutil                    4.4.2                    py27_0  
ptyprocess                0.5.1                    py27_0  
py2cairo                  1.10.0                   py27_2  
pyasn1                    0.1.9                    py27_0  
pycparser                 2.16                     py27_0  
pyflakes                  1.3.0                    py27_0  
pygments                  2.1.3                    py27_0  
pylint                    1.5.4                    py27_1  
pyopenssl                 16.0.0                   py27_0  
pyparsing                 2.1.4                    py27_0  
pyqt                      4.11.3                   py27_1  
python                    2.7.12                        1  
python-dateutil           2.5.3                    py27_0  
pytz                      2016.7                   py27_0  
pyyaml                    3.12                     py27_0  
pyzmq                     16.0.0                   py27_0  
qt                        4.8.6                         3  
qtawesome                 0.3.3                    py27_0  
qtconsole                 4.2.1                    py27_0  
qtpy                      1.1.2                    py27_0  
readline                  6.2                           2  
requests                  2.11.1                   py27_0  
rope                      0.9.4                    py27_1  
scikit-learn              0.16.1               np19py27_0  
scipy                     0.17.1               np19py27_1  
setuptools                27.2.0                   py27_0  
simplegeneric             0.8.1                    py27_1  
singledispatch            3.4.0.3                  py27_0  
sip                       4.16.5                   py27_0  
six                       1.10.0                   py27_0  
snowballstemmer           1.2.1                    py27_0  
sphinx                    1.4.8                    py27_0  
spyder                    3.0.1                    py27_0  
sqlite                    3.13.0                        0  
ssl_match_hostname        3.4.0.2                  py27_1  
terminado                 0.6                      py27_0  
tk                        8.5.18                        0  
tornado                   4.4.2                    py27_0  
traitlets                 4.3.1                    py27_0  
asciidata                 2016.5.24                UVCDAT    uvcdat/label/nightly
binaryio                  2016.5.24                UVCDAT    uvcdat/label/nightly
cdat_info                 2016.10.25               UVCDAT    uvcdat/label/nightly
cdms2                     2016.9.7                 UVCDAT    uvcdat/label/nightly
cdtime                    2016.5.24                UVCDAT    uvcdat/label/nightly
cdutil                    2016.6.23                UVCDAT    uvcdat/label/nightly
cssgrid                   2016.5.24                UVCDAT    uvcdat/label/nightly
distarray                 2016.5.24                UVCDAT    uvcdat/label/nightly
dsgrid                    2016.5.24                UVCDAT    uvcdat/label/nightly
dv3d                      2016.5.24                UVCDAT    uvcdat/label/nightly
esg                       2016.5.24                UVCDAT    uvcdat/label/nightly
eztemplate                2016.5.24                UVCDAT    uvcdat/label/nightly
genutil                   2016.5.24                UVCDAT    uvcdat/label/nightly
lmoments                  2016.5.24                UVCDAT    uvcdat/label/nightly
natgrid                   2016.5.24                UVCDAT    uvcdat/label/nightly
ort                       2016.5.24                UVCDAT    uvcdat/label/nightly
pydebug                   2016.5.24                UVCDAT    uvcdat/label/nightly
regrid2                   2016.5.24                UVCDAT    uvcdat/label/nightly
regridpack                2016.5.24                UVCDAT    uvcdat/label/nightly
shgrid                    2016.5.24                UVCDAT    uvcdat/label/nightly
spherepack                2016.6.21                UVCDAT    uvcdat/label/nightly
thermo                    2016.6.15                UVCDAT    uvcdat/label/nightly
trends                    2016.5.24                UVCDAT    uvcdat/label/nightly
unidata                   2016.5.24                UVCDAT    uvcdat/label/nightly
uvcmetrics                2016.9.1                 UVCDAT    uvcdat/label/nightly
vcs                       2016.10.20               UVCDAT    uvcdat/label/nightly
vcsaddons                 2016.10.20               UVCDAT    uvcdat/label/nightly
vistrails                 2016.10.21               UVCDAT    uvcdat/label/nightly
wk                        2016.5.24                UVCDAT    uvcdat/label/nightly
xmgrace                   2016.6.15                UVCDAT    uvcdat/label/nightly
zonalmeans                2016.5.24                UVCDAT    uvcdat/label/nightly
cd77                      1.0.0                    UVCDAT    uvcdat
clapack                   3.2.1                    UVCDAT    uvcdat
cmor                      2.9.2                     PCMDI    uvcdat
esmf                      ESMF_6_3_0rp1_ESMP_01          UVCDAT    uvcdat
ezget                     1.0.1                    UVCDAT    uvcdat
ffmpeg                    2.7.0                    UVCDAT    uvcdat
g2clib                    1.4.0b                   UVCDAT    uvcdat
hdf5                      1.8.16                   UVCDAT    uvcdat
hdf5tools                 2.6                      UVCDAT    uvcdat
jasper                    1.900.1                  UVCDAT    uvcdat
lapack                    3.4.2                    UVCDAT    uvcdat
lats                      1.0.1                    UVCDAT    uvcdat
libcdms                   2.6                      UVCDAT    uvcdat
libcf                     1.0.beta11               UVCDAT    uvcdat
libdrs_c                  1.0.0                    UVCDAT    uvcdat
libdrs_f                  1.0.1                    UVCDAT    uvcdat
libnetcdf                 4.3.3.1                  UVCDAT    uvcdat
matplotlib                1.5.0                    py27_0    uvcdat
ossuuid                   1.6.2                    UVCDAT    uvcdat
output_viewer             1.1.0                    py27_0    uvcdat
proj4                     4.9.2                    UVCDAT    uvcdat
pyspharm                  1.0.8                    UVCDAT    uvcdat
udunits2                  2.2.17                   UVCDAT    uvcdat
uvcdat                    2.6                      UVCDAT    uvcdat
vtk                       7.1.0.2.6         uvcdat_master    uvcdat
x264                      20151006.2245            UVCDAT    uvcdat
yasm                      1.2.0                    UVCDAT    uvcdat
wcwidth                   0.1.7                    py27_0  
wheel                     0.29.0                   py27_0  
widgetsnbextension        1.2.6                    py27_0  
wrapt                     1.10.8                   py27_0  
xz                        5.2.2                         0  
yaml                      0.1.6                         0  
zeromq                    4.1.5                         0  
zlib                      1.2.8                         3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants