updating string in textbox automatically

updating string in textbox automatically

Post by bill bi » Fri, 26 May 2006 04:53:29


I have a script that updates a graph to show when a new point is
plotted. I have a textbox that I want to update at the same time. I
use 'annotation(figure1, ....)' to create the textbox. How do redraw
the textbox so that it is not simply overwritten and make a mess?
Here is an example code that updates the graph but not the textbox:

x=[1:1:20]
y=log(x);
yticklabel=[];
xticklabel=[];
ytick=[];
xtick=[];
figure1=figure;
for k=1:20
hold on
xticklabel=[xticklabel (x(k))];
xtick=[xtick x(k)];
ylabel('Y');
if (rem(k,2)==0)
yticklabel=[yticklabel y(k)];
ytick=[ytick y(k)];
end %
plot(x(k),y(k),'s','MarkerSize',5,'MarkerFaceColor','r','MarkerEdgeCol
or','none')
set(gca,'Ytick',ytick,'YTickLabel',yticklabel,'Xtick',xtick,'XTickLabe
l',xticklabel);

pause(.3)
annotation1= annotation(figure1,'textbox','Position',[0.04464
0.003968 0.1679 0.0746],...
'String',['Y value:' num2str(y(k))],'FitHeightToText','on');
drawnow;
end
 
 
 

1. String Control: How to automatically update to the lastest string entry

2. Microsoft.NET Framework 1.1 is this automatically updated when ins

I have to reinstalled back to Window XP Media Center 2005 SP2, did not go to
window update to install all 79 critical updates 8-9 hours on dial-up and
just install Window Vista upgrade right away. Does Window Vista upgrade
automatically install all update to Microsoft.Net Framework 1.1? Is
Microsoft.NET Framework 1.1 suppose to be Microsoft.NET Framework 1.1 SP1?
Can anyone check in program and features if it's suppose to be Microsoft.NET
Framework 1.1 SP1? or C:/Windows/Microsoft.NET/Framework show version folders?

on C: Windows/Microsoft.NET/Framework i have the following Version.

v1.0.3705
v1.1.4322 is this the latest updated version? i remember that they have
Microsoft.Net Framework 1.1 SP1 update.
v2.0.50727
v3.0

3. Update Textbox when other textboxes are updated.

4. automatically updating a textbox

5. help - populating a combox box from a text file and updating a textbox automatically

6. automatically updating textbox and adding it to tables

7. 2 Textboxes' info into another textbox automatically

8. automatically update word count in textbox

9. Server updated automatically when not set to automatically update?

10. Passing a string from a form's TextBox to a report's TextBox

11. Updating textbox from class that did not create the textbox?

12. How to update a textbox as you write in another textbox

13. how to update a textbox with reference to input from another textbox?

14. Textbox updating other Textboxes

15. 5 Updates fail with Error Code: 0x80070005 - Other updates ins