I am controlling BioPython's phylo package to beget a tree, and offer use
gcf to save this tide tree as a figure vigilant of
matplotlib.tree=Phylo.read("my
tree.nwk","newick")Phylo.draw(tree)tree_f=plt.gcf()I wish to be means to
make use of this figure vigilant in a subplot:gs=gridspec.GridSpec(1,
2,height_ratios=[1,1,-2,2] ,width_ratios=[1,1,-2,2],hspace=0,wspace=0)
phyl_ax=plt.subplot(gs[0])ht_ax=plt.subplot(gs[1])How do we make phyl_ax
take adult a figure object?I have attempted phyl_ax(tree_f), this fails
with a TypeError: 'AxesSubplot' vigilant is not callable.
Tuesday, 8 April 2014
Friday, 4 April 2014
AppFabric - List vigilant returned has objects with zero values
I am new to AppFabric and exploring it. we am means to put List in
appfabric and means to collect a list controlling Get method. However,
after retrieveing all a properties of a objects are set as null. Can
anybody assistance how can we solve this problem.Following is illustration
formula //Country vigilant Country country1 = new Country();country1.Name
="test";//Create listList countryList = new List
();countryList.Add(country1);//Add to
AppFabric_cache.Put("countryKey",countryList) //Retrieve from cacheList
countryList = (List )_cache.Get("countryKey");//check a
resultcountryList.Count advantage 1 that is expected.countryList[0].Name
advantage null;
appfabric and means to collect a list controlling Get method. However,
after retrieveing all a properties of a objects are set as null. Can
anybody assistance how can we solve this problem.Following is illustration
formula //Country vigilant Country country1 = new Country();country1.Name
="test";//Create listList countryList = new List
();countryList.Add(country1);//Add to
AppFabric_cache.Put("countryKey",countryList) //Retrieve from cacheList
countryList = (List )_cache.Get("countryKey");//check a
resultcountryList.Count advantage 1 that is expected.countryList[0].Name
advantage null;
Tuesday, 1 April 2014
how to govern churned statements in loop
Hallo we have several queries to execute:select * from table;call
procedureA(par1);call procedureB(par2);I would like to govern them within
a loop to perform other operations:$queries = array("select * from
table;", "call procedureA(par1);", "call
procedureB(par2);");foreach($queries as $query) {
$res=$db->query($query); // do something here with a query outcome
$r->close();}The initial matter runs fine; during a second iteration, it
stops observant that $r is a non object:Call to a member duty close() on a
non-objectApart from controlling mysqli_multi_query(), in that proceed
could we loop govern churned queries?
procedureA(par1);call procedureB(par2);I would like to govern them within
a loop to perform other operations:$queries = array("select * from
table;", "call procedureA(par1);", "call
procedureB(par2);");foreach($queries as $query) {
$res=$db->query($query); // do something here with a query outcome
$r->close();}The initial matter runs fine; during a second iteration, it
stops observant that $r is a non object:Call to a member duty close() on a
non-objectApart from controlling mysqli_multi_query(), in that proceed
could we loop govern churned queries?
Subscribe to:
Comments (Atom)